Ticket #9478 (closed: fixed)

Opened 6 years ago

Last modified 5 years ago

Colorfill plots: Initial colour bar scaling ignores negative numbers

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: critical Milestone: Release 3.2
Component: GUI Keywords:
Cc: Blocked By:
Blocking: Tester: Karl Palmen

Description

From James Lord

row_ws = CreateWorkspace(DataX="1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6",
                         DataY="1,1.5,-1.2,-1.6,1.4,  2,-2.1,2.1,2.3,-2.4, 3.1,3.2,-3.0,-3.4,-3.5",NSpec=3)

The resulting Color Fill Plot's right Y axis is from 1.0 to 3.2 with all the negative "pixels" filled with the minimum color (light blue). It ought to be -3.5 to +3.2.

James.
(Still using Mantid version 3.1.20140502.2025. My practical application is AsymmetryCalc to get muon polarisation and then ConjoinSpectra to make a map versus time and some log parameter such as magnetic field. Negative values are quite likely.)

Change History

comment:1 Changed 6 years ago by Martyn Gigg

  • Status changed from new to assigned

comment:2 Changed 6 years ago by Martyn Gigg

  • Status changed from assigned to inprogress

Fix SignalRange class not to ignore negative values.

Refs #9478

Changeset: 43f0d75fe1b32def6df6e90870f679f8e14cec51

comment:3 Changed 6 years ago by Martyn Gigg

  • Status changed from inprogress to verify
  • Resolution set to fixed

Branch: bugfix/9478_fix_colorfill_ignore_negative_values

Tester: Run James' script before and after merging the fix to check that the color bar does indeed no have the correct range when it starts up.

comment:4 Changed 6 years ago by Karl Palmen

  • Status changed from verify to verifying
  • Tester set to Karl Palmen

comment:5 Changed 6 years ago by Karl Palmen

  • Status changed from verifying to closed

Merge remote-tracking branch 'origin/bugfix/9478_fix_colorfill_ignore_negative_values'

Full changeset: 82c8ad7215358a47288f17489be813c9e9ea84f0

comment:6 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 10321

Note: See TracTickets for help on using tickets.