Commit e54ee7ed authored by Savici, Andrei T's avatar Savici, Andrei T Committed by Peterson, Peter
Browse files

Fix bug when trying to get distribution flag

parent 92496fa6
......@@ -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,
......
......@@ -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
------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment