Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
usadelndsoc
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JYU Condensed Matter Theory
usadelndsoc
Commits
b724ce47
Commit
b724ce47
authored
1 year ago
by
patavirt
Browse files
Options
Downloads
Patches
Plain Diff
examples: cpr_sns better plot
parent
8a8a7d7e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/cpr_sns.py
+4
-4
4 additions, 4 deletions
examples/cpr_sns.py
with
4 additions
and
4 deletions
examples/cpr_sns.py
+
4
−
4
View file @
b724ce47
...
...
@@ -95,7 +95,7 @@ def Gamma_to_alpha(Gamma_DP, Gamma_ST):
return
alpha_soc
,
eta
def
do
(
W_xi
=
6
,
multin
=
Fals
e
):
def
do
(
W_xi
=
6
,
multin
=
Tru
e
):
T
=
0.1
Gamma_DP
=
10
Gamma_ST
=
1
...
...
@@ -154,7 +154,7 @@ def do(W_xi=6, multin=False):
ax
=
axs
[
0
]
ax
.
plot
(
phi
/
pi
,
Jx_mean
.
T
/
abs
(
Jx_mean
).
max
(
axis
=
1
))
if
multin
:
ax
.
plot
(
mphi
/
pi
,
Jx0_mean
.
T
/
abs
(
Jx0_mean
).
max
(
axis
=
1
),
"
k:
"
,
alpha
=
0.25
)
#
ax.plot(mphi / pi, Jx0_mean.T / abs(Jx0_mean).max(axis=1), "k:", alpha=0.25)
ax
.
plot
(
mphi
/
pi
,
Jx1_mean
.
T
/
abs
(
Jx1_mean
).
max
(
axis
=
1
),
"
k:
"
)
ax
.
set_xlabel
(
r
"
$\varphi / \pi$
"
)
ax
.
set_ylabel
(
r
"
$I / I_{\mathrm{max}}$
"
)
...
...
@@ -168,13 +168,13 @@ def do(W_xi=6, multin=False):
ax
=
axs
[
1
]
ax
.
plot
(
L
/
xi
,
100
*
eff
(
Jx_mean
))
if
multin
:
ax
.
plot
(
L
/
xi
,
100
*
eff
(
Jx0_mean
),
"
k:
"
,
alpha
=
0.25
)
#
ax.plot(L / xi, 100 * eff(Jx0_mean), "k:", alpha=0.25)
ax
.
plot
(
L
/
xi
,
100
*
eff
(
Jx1_mean
),
"
k:
"
)
ax
.
set_xlabel
(
r
"
$L / \xi$
"
)
ax
.
set_ylabel
(
r
"
$\eta$ [%]
"
)
fig
.
suptitle
(
rf
"
$W =
{
W
/
xi
}
\xi_0$ $\Gamma_{{DP}} =
{
Gamma_DP
}
\Delta_0$, $\Gamma_{{ST}} =
{
Gamma_ST
}
\Delta_0$ ($\tilde{{\eta}} =
{
eta
:
.
3
g
}
$, $\tilde{{\alpha}} =
{
alpha
:
.
3
g
}
$)
"
rf
"
$h =
{
h
}
\Delta_0$, $T =
{
T
}
\Delta_0$,
$W =
{
W
/
xi
}
\xi_0$ $\Gamma_{{DP}} =
{
Gamma_DP
}
\Delta_0$, $\Gamma_{{ST}} =
{
Gamma_ST
}
\Delta_0$ ($\tilde{{\eta}} =
{
eta
:
.
3
g
}
$, $\tilde{{\alpha}} =
{
alpha
:
.
3
g
}
$)
"
)
fig
.
savefig
(
"
cpr_sns.pdf
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment