Ticket #5107 (closed: fixed)
Plot refresh behavior
Reported by: | Mathieu Doucet | Owned by: | Russell Taylor |
---|---|---|---|
Priority: | critical | Milestone: | Release 2.2 |
Component: | Mantid | Keywords: | |
Cc: | ambayeh@… | Blocked By: | |
Blocking: | Tester: | Owen Arnold |
Description
A few users have complained that the x-scale of plots updates/rescales when the plotted workspace updates. Users would like their choice of axis options (log vs linear, or range in x) stick even after a workspace change.
Change History
comment:2 Changed 8 years ago by Nick Draper
- Milestone changed from Release 2.1 to Release 2.2
Moved at end of release 2.1
comment:3 Changed 8 years ago by Russell Taylor
- Status changed from new to accepted
- Owner changed from Anyone to Russell Taylor
- Priority changed from minor to critical
The live data work has made getting this fixed more important.
comment:4 Changed 8 years ago by Russell Taylor
Re #5107. Don't auto-rescale axes if limits manually set.
If a user sets limits on a particular axis, these will stay fixed until told otherwise (via e.g. 'Rescale to show all). Previously, if the backing workspace updated the graph would rescale back to the full range of the data, which was particularly annoying for live data viewing. They would also rescale if errors were added
- this is also fixed. Changeset: 242307193a0ac7ccab1d63bb868cd7191ddcb218
comment:5 Changed 8 years ago by Russell Taylor
Re #5107. Keep fixed axes fixed when drag-dropping from a workspace
onto an existing MantidCurve.
Changeset: 0463dd64c07be4ba6eca6960207fff1aa9273127
comment:6 Changed 8 years ago by Russell Taylor
Re #5107. Remove unused method/member.
This was added at some point after the fork from QtiPlot, but never used. We use the underlying QwtPlot axis attributes.
Changeset: 8a9fe8441375c4a641cdf4e616c4d36ef99a03bd
comment:7 Changed 8 years ago by Russell Taylor
Re #5107. Forgot to delete commented-out code.
Changeset: 0accd29c859d009da40e32dbbce08a869ed900b9
comment:8 Changed 8 years ago by Russell Taylor
Re #5107. Allow fixing of axes on curves from 'plot bins' commands.
The deleted lines caused them to flip back to autoscaling every time the workspace changed.
Changeset: cc59706e61b43deb38a9117ac01fd3a240ee5214
comment:9 Changed 8 years ago by Russell Taylor
Re #5107. Ensure that autoscaling=no preference is respected.
Previously, even if the autoscaling option was unchecked in the 2d plot preferences, several plot types would have it enabled.
Changeset: 9f7a8e67566715bbb3b1cbc8500e5aeed3f9cd3c
comment:10 Changed 8 years ago by Russell Taylor
- Status changed from accepted to verify
- Resolution set to fixed
This should be sorted now. In particular, manually-set axis limits should not be lost when (a) a workspace updates, (b) a new curve is inserted or (c) errors are added to a curve.
Axes are considered fixed if they are manually set (via the dialog or python) and are independent (e.g. the abscissa can be fixed while the ordinate still automatically rescales). Setting fixed axes back to autoscaling is available from python commands, the 'Rescale to show all' right-click option or the 'Best fit' toolbar option. The 'Autoscaling' option in the 2D plot preferences should be respected (though I'm not quite sure why you'd want it turned off. Zooming should also work as before.
Colour fill plots behave slightly differently - the colormap does not rescale automatically
comment:11 Changed 8 years ago by Russell Taylor
Re #5107. Don't auto-rescale axes if limits manually set.
If a user sets limits on a particular axis, these will stay fixed until told otherwise (via e.g. 'Rescale to show all). Previously, if the backing workspace updated the graph would rescale back to the full range of the data, which was particularly annoying for live data viewing. They would also rescale if errors were added
- this is also fixed. Changeset: 242307193a0ac7ccab1d63bb868cd7191ddcb218
comment:12 Changed 8 years ago by Russell Taylor
Re #5107. Keep fixed axes fixed when drag-dropping from a workspace
onto an existing MantidCurve.
Changeset: 0463dd64c07be4ba6eca6960207fff1aa9273127
comment:13 Changed 8 years ago by Russell Taylor
Re #5107. Remove unused method/member.
This was added at some point after the fork from QtiPlot, but never used. We use the underlying QwtPlot axis attributes.
Changeset: 8a9fe8441375c4a641cdf4e616c4d36ef99a03bd
comment:14 Changed 8 years ago by Russell Taylor
Re #5107. Forgot to delete commented-out code.
Changeset: 0accd29c859d009da40e32dbbce08a869ed900b9
comment:15 Changed 8 years ago by Russell Taylor
Re #5107. Allow fixing of axes on curves from 'plot bins' commands.
The deleted lines caused them to flip back to autoscaling every time the workspace changed.
Changeset: cc59706e61b43deb38a9117ac01fd3a240ee5214
comment:16 Changed 8 years ago by Russell Taylor
Re #5107. Ensure that autoscaling=no preference is respected.
Previously, even if the autoscaling option was unchecked in the 2d plot preferences, several plot types would have it enabled.
Changeset: 9f7a8e67566715bbb3b1cbc8500e5aeed3f9cd3c
comment:17 Changed 8 years ago by Owen Arnold
- Status changed from verify to verifying
- Tester set to Owen Arnold
comment:18 Changed 8 years ago by Owen Arnold
- Status changed from verifying to closed
Seems to work according to the description. Works both via GUI and from python.
comment:19 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 5953