Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
Takin
mag-core
Commits
69d7cee1
Commit
69d7cee1
authored
Jul 26, 2019
by
Tobias WEBER
Browse files
3d drawing in cov tool
parent
28b29f88
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/tascalc/cov.py
View file @
69d7cee1
...
...
@@ -368,13 +368,25 @@ def plot_ellipses(file, Q4, w, Qmean, \
plot
.
tight_layout
()
# 3d plot
fig3d
=
plot
.
figure
()
subplot3d
=
fig3d
.
add_subplot
(
111
,
projection
=
"3d"
)
subplot3d
.
scatter
(
Q4
[:,
0
],
Q4
[:,
1
],
Q4
[:,
3
],
s
=
thesymsize
)
subplot3d
.
set_xlabel
(
"Qpara (1/A)"
)
subplot3d
.
set_ylabel
(
"Qperp (1/A)"
)
subplot3d
.
set_zlabel
(
"E (meV)"
)
subplot3d
.
scatter
(
Q4
[:,
0
],
Q4
[:,
1
],
Q4
[:,
3
],
s
=
thesymsize
)
# xE
subplot3d
.
plot
(
ell_QxE
[
0
],
ell_QxE
[
1
],
zs
=
0.
,
zdir
=
"y"
,
c
=
"black"
,
linestyle
=
"dashed"
)
subplot3d
.
plot
(
ell_QxE_proj
[
0
],
ell_QxE_proj
[
1
],
zs
=
0.
,
zdir
=
"y"
,
c
=
"black"
)
# yE
subplot3d
.
plot
(
ell_QyE
[
0
],
ell_QyE
[
1
],
zs
=
0.
,
zdir
=
"x"
,
c
=
"black"
,
linestyle
=
"dashed"
)
subplot3d
.
plot
(
ell_QyE_proj
[
0
],
ell_QyE_proj
[
1
],
zs
=
0.
,
zdir
=
"x"
,
c
=
"black"
)
# xy
subplot3d
.
plot
(
ell_QxQy
[
0
],
ell_QxQy
[
1
],
zs
=
0.
,
zdir
=
"z"
,
c
=
"black"
,
linestyle
=
"dashed"
)
subplot3d
.
plot
(
ell_QxQy_proj
[
0
],
ell_QxQy_proj
[
1
],
zs
=
0.
,
zdir
=
"z"
,
c
=
"black"
)
if
file
!=
""
:
splitext
=
os
.
path
.
splitext
(
file
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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