Merge pull request #1723 from NilsNemitz/fixed_data_ordering_for_colorbaritem
Set fixed data ordering for ColorBarItem
This commit is contained in:
commit
c62e51f4d8
@ -98,7 +98,7 @@ class ColorBarItem(PlotItem):
|
||||
self.axis.unlinkFromView()
|
||||
self.axis.setRange( self.values[0], self.values[1] )
|
||||
|
||||
self.bar = ImageItem()
|
||||
self.bar = ImageItem(axisOrder='col-major')
|
||||
if self.horizontal:
|
||||
self.bar.setImage( np.linspace(0, 1, 256).reshape( (-1,1) ) )
|
||||
if label is not None: self.getAxis('bottom').setLabel(label)
|
||||
|
Loading…
Reference in New Issue
Block a user