Bugfix: Malformed tables.
This commit is contained in:
parent
92d7bbe18e
commit
8b6ff6b06a
@ -52,7 +52,7 @@ class ColorMap(object):
|
||||
|
||||
def __init__(self, pos, color, mode=None):
|
||||
"""
|
||||
========= ==============================================================
|
||||
=============== ==============================================================
|
||||
**Arguments:**
|
||||
pos Array of positions where each color is defined
|
||||
color Array of RGBA colors.
|
||||
@ -62,7 +62,7 @@ class ColorMap(object):
|
||||
indicating the color space that should be used when
|
||||
interpolating between stops. Note that the last mode value is
|
||||
ignored. By default, the mode is entirely RGB.
|
||||
========= ==============================================================
|
||||
=============== ==============================================================
|
||||
"""
|
||||
self.pos = pos
|
||||
self.color = color
|
||||
@ -193,7 +193,7 @@ class ColorMap(object):
|
||||
"""
|
||||
Return an RGB(A) lookup table (ndarray).
|
||||
|
||||
============= ============================================================================
|
||||
=============== =============================================================================
|
||||
**Arguments:**
|
||||
start The starting value in the lookup table (default=0.0)
|
||||
stop The final value in the lookup table (default=1.0)
|
||||
@ -202,7 +202,7 @@ class ColorMap(object):
|
||||
in the table. If alpha is None, it will be automatically determined.
|
||||
mode Determines return type: 'byte' (0-255), 'float' (0.0-1.0), or 'qcolor'.
|
||||
See :func:`map() <pyqtgraph.ColorMap.map>`.
|
||||
============= ============================================================================
|
||||
=============== =============================================================================
|
||||
"""
|
||||
if isinstance(mode, basestring):
|
||||
mode = self.enumMap[mode.lower()]
|
||||
|
@ -107,7 +107,7 @@ class Parameter(QtCore.QObject):
|
||||
Parameter instance, the options available to this method are also allowed
|
||||
by most Parameter subclasses.
|
||||
|
||||
================= =========================================================
|
||||
======================= =========================================================
|
||||
**Keyword Arguments:**
|
||||
name The name to give this Parameter. This is the name that
|
||||
will appear in the left-most column of a ParameterTree
|
||||
@ -133,7 +133,7 @@ class Parameter(QtCore.QObject):
|
||||
expanded If True, the Parameter will appear expanded when
|
||||
displayed in a ParameterTree (its children will be
|
||||
visible). (default=True)
|
||||
================= =========================================================
|
||||
======================= =========================================================
|
||||
"""
|
||||
|
||||
|
||||
@ -676,7 +676,7 @@ class Parameter(QtCore.QObject):
|
||||
Called when the state of any sub-parameter has changed.
|
||||
|
||||
========== ================================================================
|
||||
**Arguments:**
|
||||
Arguments:
|
||||
param The immediate child whose tree state has changed.
|
||||
note that the change may have originated from a grandchild.
|
||||
changes List of tuples describing all changes that have been made
|
||||
|
Loading…
Reference in New Issue
Block a user