Ticket #1110 (closed: fixed)

Opened 11 years ago

Last modified 5 years ago

A 1D plot's scale is not updated when a workspace is replaced

Reported by: Martyn Gigg Owned by: Roman Tolchenov
Priority: major Milestone: Iteration 22
Component: Keywords:
Cc: Blocked By:
Blocking: Tester:

Description (last modified by Nick Draper) (diff)

We need to be clever here. We should track if a user has explicitly set an axis value. If they have we should not autoscale it.

Perhaps we should take the approach similar to that taken in Excel (see screenshot).

Talk this through before you do it.

Attachments

excel.png (18.0 KB) - added by Nick Draper 11 years ago.

Change History

comment:1 Changed 11 years ago by Nick Draper

  • Owner set to Roman Tolchenov
  • Status changed from new to assigned
  • Description modified (diff)

Changed 11 years ago by Nick Draper

comment:2 Changed 11 years ago by Roman Tolchenov

(In [3925]) 1D plots rescale after the workspace is replaced if the plot is in the autoscale mode. They also automatically change the line style between histogram and point data. re #1110

comment:3 Changed 11 years ago by Roman Tolchenov

  • Status changed from assigned to accepted

comment:4 Changed 11 years ago by Roman Tolchenov

  • Status changed from accepted to testing
  • Resolution set to fixed

comment:5 Changed 11 years ago by Anders Markvardsen

  • Status changed from testing to reopened
  • Resolution fixed deleted

Works for fitting, but when a workspace is added to itself using the Plus algorithm the figure is not rescaled. Also, when re-running PlotAsymmetryByLogValue algorithm for a different 'Log value', and save to save workspace, the x-axis and x-axis label is not updated.

comment:6 Changed 11 years ago by Roman Tolchenov

(In [4231]) MantidCurve did not recalculate its bonding rectangle after replacing the workspace. Also improved handling of 2D graphs in cases there are NaNs or infinities in the x-values. re #1110

comment:7 Changed 11 years ago by Roman Tolchenov

  • Status changed from reopened to testing
  • Resolution set to fixed

comment:8 Changed 11 years ago by Martyn Gigg

  • Status changed from testing to closed

comment:9 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 1958

Note: See TracTickets for help on using tickets.