add axisOrder='col-major'
This commit is contained in:
parent
2b2b8d34c2
commit
515ae5f6e3
@ -98,7 +98,7 @@ class ColorBarItem(PlotItem):
|
|||||||
self.axis.unlinkFromView()
|
self.axis.unlinkFromView()
|
||||||
self.axis.setRange( self.values[0], self.values[1] )
|
self.axis.setRange( self.values[0], self.values[1] )
|
||||||
|
|
||||||
self.bar = ImageItem()
|
self.bar = ImageItem(axisOrder='col-major')
|
||||||
if self.horizontal:
|
if self.horizontal:
|
||||||
self.bar.setImage( np.linspace(0, 1, 256).reshape( (-1,1) ) )
|
self.bar.setImage( np.linspace(0, 1, 256).reshape( (-1,1) ) )
|
||||||
if label is not None: self.getAxis('bottom').setLabel(label)
|
if label is not None: self.getAxis('bottom').setLabel(label)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user