Bugfixes:
- initialize ImageItem.menu - fixed default argument for ROI.getAffineSliceParams(axes)
This commit is contained in:
parent
8b4596a107
commit
c022f3a10f
@ -40,7 +40,7 @@ class ImageItem(GraphicsObject):
|
||||
#self.pixmapItem = QtGui.QGraphicsPixmapItem(self)
|
||||
#self.qimage = QtGui.QImage()
|
||||
#self._pixmap = None
|
||||
|
||||
self.menu = None
|
||||
self.image = None ## original image data
|
||||
self.qimage = None ## rendered image for display
|
||||
#self.clipMask = None
|
||||
|
@ -958,7 +958,7 @@ class ROI(GraphicsObject):
|
||||
### Untranspose array before returning
|
||||
#return arr5.transpose(tr2)
|
||||
|
||||
def getAffineSliceParams(self, data, img, axes=(0.1)):
|
||||
def getAffineSliceParams(self, data, img, axes=(0,1)):
|
||||
"""
|
||||
Returns the parameters needed to use :func:`affineSlice <pyqtgraph.affineSlice>` to
|
||||
extract a subset of *data* using this ROI and *img* to specify the subset.
|
||||
|
@ -470,7 +470,8 @@ class ViewBox(GraphicsWidget):
|
||||
|
||||
def enableAutoRange(self, axis=None, enable=True):
|
||||
"""
|
||||
Enable (or disable) auto-range for *axis*, which may be ViewBox.XAxis, ViewBox.YAxis, or ViewBox.XYAxes for both.
|
||||
Enable (or disable) auto-range for *axis*, which may be ViewBox.XAxis, ViewBox.YAxis, or ViewBox.XYAxes for both
|
||||
(if *axis* is omitted, both axes will be changed).
|
||||
When enabled, the axis will automatically rescale when items are added/removed or change their shape.
|
||||
The argument *enable* may optionally be a float (0.0-1.0) which indicates the fraction of the data that should
|
||||
be visible (this only works with items implementing a dataRange method, such as PlotDataItem).
|
||||
|
Loading…
Reference in New Issue
Block a user