Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
a660b1bb
Commit
a660b1bb
authored
5 years ago
by
Conor Finn
Browse files
Options
Downloads
Patches
Plain Diff
RE #27724 Fix calib plotting style
According to the requests of the Engineering Diffraction scientists.
parent
84e4c829
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/Engineering/gui/engineering_diffraction/tabs/calibration/model.py
+4
-3
4 additions, 3 deletions
...ing/gui/engineering_diffraction/tabs/calibration/model.py
with
4 additions
and
3 deletions
scripts/Engineering/gui/engineering_diffraction/tabs/calibration/model.py
+
4
−
3
View file @
a660b1bb
...
...
@@ -202,7 +202,7 @@ class CalibrationModel(object):
plot_bank_2
=
fig
.
add_subplot
(
gs
[
1
],
projection
=
"
mantid
"
)
for
ax
,
ws
,
bank
in
zip
([
plot_bank_1
,
plot_bank_2
],
[
bank_1_ws
,
bank_2_ws
],
[
1
,
2
]):
ax
.
plot
(
ws
,
wkspIndex
=
0
,
linestyle
=
"
--
"
,
marker
=
"
o
"
,
markersize
=
"
3
"
)
ax
.
plot
(
ws
,
wkspIndex
=
0
,
linestyle
=
""
,
marker
=
"
o
"
,
markersize
=
"
3
"
)
ax
.
plot
(
ws
,
wkspIndex
=
1
,
linestyle
=
"
--
"
,
marker
=
"
o
"
,
markersize
=
"
3
"
)
ax
.
set_title
(
"
Engg Gui Difc Zero Peaks Bank
"
+
str
(
bank
))
ax
.
legend
((
"
Peaks Fitted
"
,
"
DifC/TZero Fitted Straight Line
"
))
...
...
@@ -213,12 +213,13 @@ class CalibrationModel(object):
def
_plot_difc_tzero_single_bank_or_custom
(
bank
):
bank_ws
=
Ads
.
retrieve
(
"
engggui_difc_zero_peaks_bank_
"
+
str
(
bank
))
ax
=
plot
([
bank_ws
],
[
0
,
1
],
ax
=
plot
([
bank_ws
],
[
0
],
plot_kwargs
=
{
"
linestyle
"
:
"
--
"
,
"
linestyle
"
:
""
,
"
marker
"
:
"
o
"
,
"
markersize
"
:
"
3
"
}).
gca
()
ax
.
plot
(
bank_ws
,
wkspIndex
=
1
,
linestyle
=
"
--
"
,
marker
=
"
o
"
,
markersize
=
"
3
"
)
ax
.
set_title
(
"
Engg Gui Difc Zero Peaks Bank
"
+
str
(
bank
))
ax
.
legend
((
"
Peaks Fitted
"
,
"
DifC/TZero Fitted Straight Line
"
))
ax
.
set_xlabel
(
"
Expected Peaks Centre(dSpacing, A)
"
)
...
...
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