Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
e54ee7ed
Commit
e54ee7ed
authored
Aug 18, 2021
by
Savici, Andrei T
Committed by
Peterson, Peter
Aug 19, 2021
Browse files
Fix bug when trying to get distribution flag
parent
92496fa6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Framework/PythonInterface/mantid/plots/mantidaxes.py
View file @
e54ee7ed
...
...
@@ -666,7 +666,8 @@ class MantidAxes(Axes):
workspace
=
args
[
0
]
spec_num
=
self
.
get_spec_number_or_bin
(
workspace
,
kwargs
)
normalize_by_bin_width
,
kwargs
=
get_normalize_by_bin_width
(
workspace
,
self
,
**
kwargs
)
is_normalized
=
normalize_by_bin_width
or
workspace
.
isDistribution
()
is_normalized
=
normalize_by_bin_width
or
\
(
hasattr
(
workspace
,
'isDistribution'
)
and
workspace
.
isDistribution
())
with
autoscale_on_update
(
self
,
autoscale_on
):
artist
=
self
.
track_workspace_artist
(
workspace
,
...
...
@@ -786,7 +787,8 @@ class MantidAxes(Axes):
workspace
=
args
[
0
]
spec_num
=
self
.
get_spec_number_or_bin
(
workspace
,
kwargs
)
normalize_by_bin_width
,
kwargs
=
get_normalize_by_bin_width
(
workspace
,
self
,
**
kwargs
)
is_normalized
=
normalize_by_bin_width
or
workspace
.
isDistribution
()
is_normalized
=
normalize_by_bin_width
or
\
(
hasattr
(
workspace
,
'isDistribution'
)
and
workspace
.
isDistribution
())
with
autoscale_on_update
(
self
,
autoscale_on
):
artist
=
self
.
track_workspace_artist
(
workspace
,
...
...
docs/source/release/v6.2.0/framework.rst
View file @
e54ee7ed
...
...
@@ -38,6 +38,10 @@ Python
putting new features at the top of the section, followed by
improvements, followed by bug fixes.
Bugfixes
########
- Fix a bug (crash) in plotting MD workspaces when "Normalize to bin width" is set to False
Installation
------------
...
...
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