Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
XRD
darfix
Commits
630b1bf8
Commit
630b1bf8
authored
Jun 07, 2021
by
Julia Garriga Ferrer
Browse files
[gui][grainplot] Modify axes if transformation is present
parent
8ad456b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
darfix/gui/grainPlotWidget.py
View file @
630b1bf8
...
...
@@ -231,8 +231,16 @@ class GrainPlotWidget(qt.QMainWindow):
plot
.
addImage
(
darfix
.
config
.
FWHM_VAL
*
self
.
_moments
[
i
][
1
])
elif
method
==
Method
.
COM
:
self
.
_plotWidget
.
show
()
for
i
,
plot
in
enumerate
(
self
.
_plots
):
plot
.
addImage
(
self
.
_moments
[
i
][
0
])
if
self
.
dataset
.
transformation
is
not
None
:
px
=
self
.
dataset
.
transformation
[
0
][
0
][
0
]
py
=
self
.
dataset
.
transformation
[
1
][
0
][
0
]
xscale
=
(
self
.
dataset
.
transformation
[
0
][
-
1
][
-
1
]
-
px
)
/
len
(
self
.
dataset
.
transformation
[
0
][
0
])
yscale
=
(
self
.
dataset
.
transformation
[
1
][
-
1
][
-
1
]
-
py
)
/
len
(
self
.
dataset
.
transformation
[
1
][
0
])
for
i
,
plot
in
enumerate
(
self
.
_plots
):
plot
.
addImage
(
self
.
_moments
[
i
][
0
],
origin
=
(
px
,
py
),
scale
=
(
xscale
,
yscale
))
else
:
for
i
,
plot
in
enumerate
(
self
.
_plots
):
plot
.
addImage
(
self
.
_moments
[
i
][
0
])
elif
method
==
Method
.
SKEWNESS
:
self
.
_plotWidget
.
show
()
for
i
,
plot
in
enumerate
(
self
.
_plots
):
...
...
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