Opened 5 years ago

Closed 5 years ago

#417 closed defect (fixed)

Plot limits connection to plot is totally screwed up

Reported by: butler Owned by: butler
Priority: critical Milestone: SasView 3.1.0
Component: SasView Keywords:
Cc: Work Package: SasView Bug Fixing


When clicking on the q limit box the corresponding fit panel brings up two vertical lines (red and green) that show the current qmin and qmax for the fit and move when numbers are changed in box. Also they can be grabbed and moved to change the fit limits.

However, in the latest version (build 173 on PC - needs testing on mac), clicking in the limits boxes causes the associated plot to rescale the qmin down by very many orders of magnitude so that all the data and both red and green lines are on the right hand edge of the plot and neither visible nor accessible.

Change History (2)

comment:1 Changed 5 years ago by butler

  • Owner set to butler
  • Status changed from new to accepted

comment:2 Changed 5 years ago by pkienzle

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

Putting the vertical line on the plot outside the range of the data resets the plot x range in the latest version of matplotlib. The patch forces the bars to line within the range of the data, even if the min/max given in the q range is outside the data.

The text widget is not updated with the actual bar position since that would make it difficult to enter a value such as 0.01, which first requires entering the value of zero, which is beyond the minimum q value.

Note: See TracTickets for help on using tickets.