Bugfix: Malformed tables.

This commit is contained in:
tommy3001 2014-02-05 20:03:25 +01:00
parent 92d7bbe18e
commit 8b6ff6b06a
2 changed files with 46 additions and 46 deletions

View File

@ -52,7 +52,7 @@ class ColorMap(object):
def __init__(self, pos, color, mode=None): def __init__(self, pos, color, mode=None):
""" """
========= ============================================================== =============== ==============================================================
**Arguments:** **Arguments:**
pos Array of positions where each color is defined pos Array of positions where each color is defined
color Array of RGBA colors. color Array of RGBA colors.
@ -62,7 +62,7 @@ class ColorMap(object):
indicating the color space that should be used when indicating the color space that should be used when
interpolating between stops. Note that the last mode value is interpolating between stops. Note that the last mode value is
ignored. By default, the mode is entirely RGB. ignored. By default, the mode is entirely RGB.
========= ============================================================== =============== ==============================================================
""" """
self.pos = pos self.pos = pos
self.color = color self.color = color
@ -193,7 +193,7 @@ class ColorMap(object):
""" """
Return an RGB(A) lookup table (ndarray). Return an RGB(A) lookup table (ndarray).
============= ============================================================================ =============== =============================================================================
**Arguments:** **Arguments:**
start The starting value in the lookup table (default=0.0) start The starting value in the lookup table (default=0.0)
stop The final value in the lookup table (default=1.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. 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'. mode Determines return type: 'byte' (0-255), 'float' (0.0-1.0), or 'qcolor'.
See :func:`map() <pyqtgraph.ColorMap.map>`. See :func:`map() <pyqtgraph.ColorMap.map>`.
============= ============================================================================ =============== =============================================================================
""" """
if isinstance(mode, basestring): if isinstance(mode, basestring):
mode = self.enumMap[mode.lower()] mode = self.enumMap[mode.lower()]

View File

@ -107,7 +107,7 @@ class Parameter(QtCore.QObject):
Parameter instance, the options available to this method are also allowed Parameter instance, the options available to this method are also allowed
by most Parameter subclasses. by most Parameter subclasses.
================= ========================================================= ======================= =========================================================
**Keyword Arguments:** **Keyword Arguments:**
name The name to give this Parameter. This is the name that name The name to give this Parameter. This is the name that
will appear in the left-most column of a ParameterTree 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 expanded If True, the Parameter will appear expanded when
displayed in a ParameterTree (its children will be displayed in a ParameterTree (its children will be
visible). (default=True) visible). (default=True)
================= ========================================================= ======================= =========================================================
""" """
@ -676,7 +676,7 @@ class Parameter(QtCore.QObject):
Called when the state of any sub-parameter has changed. Called when the state of any sub-parameter has changed.
========== ================================================================ ========== ================================================================
**Arguments:** Arguments:
param The immediate child whose tree state has changed. param The immediate child whose tree state has changed.
note that the change may have originated from a grandchild. note that the change may have originated from a grandchild.
changes List of tuples describing all changes that have been made changes List of tuples describing all changes that have been made