changed setPredefinedGradient docstring to reference GradientEditorItem.loadPreset
This commit is contained in:
parent
e418645502
commit
240cdb1a41
@ -723,8 +723,8 @@ class ImageView(QtGui.QWidget):
|
|||||||
self.ui.histogram.gradient.setColorMap(colormap)
|
self.ui.histogram.gradient.setColorMap(colormap)
|
||||||
|
|
||||||
def setPredefinedGradient(self, name):
|
def setPredefinedGradient(self, name):
|
||||||
"""Set one of the gradients defined in :class:`GradientEditorItem <pyqtgraph.graphicsItems.GradientEditorItem>`
|
"""Set one of the gradients defined in :class:`GradientEditorItem <pyqtgraph.graphicsItems.GradientEditorItem>`.
|
||||||
Currently defined gradients are: 'thermal', 'flame', 'yellowy', 'bipolar',
|
For list of available gradients see :func:`GradientEditorItem.loadPreset() <pyqtgraph.graphicsItems.GradientEditorItem.loadPreset>`.
|
||||||
'spectrum', 'cyclic', 'greyclip', and 'grey'.
|
|
||||||
"""
|
"""
|
||||||
self.ui.histogram.gradient.loadPreset(name)
|
self.ui.histogram.gradient.loadPreset(name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user