Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yesun Huang
SumFrequencyGeneration
Commits
a0ff1868
Commit
a0ff1868
authored
Jun 16, 2021
by
YesunHuang
Browse files
fix bugs
parent
086c2f07
Changes
1
Hide whitespace changes
Inline
Side-by-side
ReadAndPrint/3DDataPrinter_Eg.py
View file @
a0ff1868
...
...
@@ -27,16 +27,16 @@ ax1=axes[1].contourf(g,Ea,data[:,:,1],cmap=cm.coolwarm)
ax2
=
axes
[
2
].
contourf
(
g
,
Ea
,
data
[:,:,
2
],
cmap
=
cm
.
coolwarm
)
ax00
=
axes
[
0
].
contour
(
g
,
Ea
,
data
[:,:,
0
],
ax0
.
levels
)
ax11
=
axes
[
1
].
contour
(
g
,
Ea
,
data
[:,:,
1
],
ax1
.
levels
)
ax
11
=
axes
[
2
].
contour
(
g
,
Ea
,
data
[:,:,
2
],
ax2
.
levels
)
ax
22
=
axes
[
2
].
contour
(
g
,
Ea
,
data
[:,:,
2
],
ax2
.
levels
)
#fmt = '%1.2f '
axes
[
0
].
clabel
(
ax00
,
ax00
.
levels
,
inline
=
True
)
axes
[
1
].
clabel
(
ax11
,
ax11
.
levels
,
inline
=
True
)
axes
[
2
].
clabel
(
ax
11
,
ax
11
.
levels
,
inline
=
True
)
axes
[
2
].
clabel
(
ax
22
,
ax
22
.
levels
,
inline
=
True
)
axes
[
0
].
set_xlabel
(
r
'$g$'
);
axes
[
1
].
set_xlabel
(
r
'$g$'
);
axes
[
2
].
set_xlabel
(
r
'$g$'
)
axes
[
0
].
set_ylabel
(
r
'$E_a$'
);
axes
[
1
].
set_ylabel
(
r
'$E_a$'
);
axes
[
2
].
set_ylabel
(
r
'$E_a$'
)
bar
1
=
fig
.
colorbar
(
ax0
,
ax
=
axes
[
0
],
pad
=
0.1
)
bar
2
=
fig
.
colorbar
(
ax1
,
ax
=
axes
[
1
],
pad
=
0.1
)
bar2
=
fig
.
colorbar
(
ax
1
,
ax
=
axes
[
2
],
pad
=
0.1
)
bar
0
=
fig
.
colorbar
(
ax0
,
ax
=
axes
[
0
],
pad
=
0.1
)
bar
1
=
fig
.
colorbar
(
ax1
,
ax
=
axes
[
1
],
pad
=
0.1
)
bar2
=
fig
.
colorbar
(
ax
2
,
ax
=
axes
[
2
],
pad
=
0.1
)
fig
.
savefig
(
'imgs/EgPopulation3D_DeltaB_'
+
str
(
DeltaB
)
+
'_Ea_'
+
str
(
Ea_s
)
+
'-'
+
str
(
Ea_e
)
+
'_g_'
+
str
(
g_s
)
+
'-'
+
str
(
g_e
)
+
'.svg'
,
dpi
=
600
,
format
=
'svg'
,
bbox_inches
=
'tight'
)
#print other data
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment