Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EO Time Series Viewer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin Jakimow
EO Time Series Viewer
Commits
8b6ff6b0
Commit
8b6ff6b0
authored
11 years ago
by
tommy3001
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix: Malformed tables.
parent
92d7bbe1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyqtgraph/colormap.py
+19
-19
19 additions, 19 deletions
pyqtgraph/colormap.py
pyqtgraph/parametertree/Parameter.py
+27
-27
27 additions, 27 deletions
pyqtgraph/parametertree/Parameter.py
with
46 additions
and
46 deletions
pyqtgraph/colormap.py
+
19
−
19
View file @
8b6ff6b0
...
...
@@ -52,17 +52,17 @@ 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.
Integer data types are interpreted as 0-255; float data types
are interpreted as 0.0-1.0
mode Array of color modes (ColorMap.RGB, HSV_POS, or HSV_NEG)
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.
========= ==============================================================
pos
Array of positions where each color is defined
color
Array of RGBA colors.
Integer data types are interpreted as 0-255; float data types
are interpreted as 0.0-1.0
mode
Array of color modes (ColorMap.RGB, HSV_POS, or HSV_NEG)
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,16 +193,16 @@ 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)
nPts The number of points in the returned lookup table.
alpha True, False, or None - Specifies whether or not alpha values are included
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>`.
=============
============================================================================
start
The starting value in the lookup table (default=0.0)
stop
The final value in the lookup table (default=1.0)
nPts
The number of points in the returned lookup table.
alpha
True, False, or None - Specifies whether or not alpha values are included
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
()]
...
...
This diff is collapsed.
Click to expand it.
pyqtgraph/parametertree/Parameter.py
+
27
−
27
View file @
8b6ff6b0
...
...
@@ -107,33 +107,33 @@ 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
for this Parameter.
value The value to initially assign to this Parameter.
default The default value for this Parameter (most Parameters
provide an option to
'
reset to default
'
).
children A list of children for this Parameter. Children
may be given either as a Parameter instance or as a
dictionary to pass to Parameter.create(). In this way,
it is possible to specify complex hierarchies of
Parameters from a single nested data structure.
readonly If True, the user will not be allowed to edit this
Parameter. (default=False)
enabled If False, any widget(s) for this parameter will appear
disabled. (default=True)
visible If False, the Parameter will not appear when displayed
in a ParameterTree. (default=True)
renamable If True, the user may rename this Parameter.
(default=False)
removable If True, the user may remove this Parameter.
(default=False)
expanded If True, the Parameter will appear expanded when
displayed in a ParameterTree (its children will be
visible). (default=True)
================= =========================================================
name
The name to give this Parameter. This is the name that
will appear in the left-most column of a ParameterTree
for this Parameter.
value
The value to initially assign to this Parameter.
default
The default value for this Parameter (most Parameters
provide an option to
'
reset to default
'
).
children
A list of children for this Parameter. Children
may be given either as a Parameter instance or as a
dictionary to pass to Parameter.create(). In this way,
it is possible to specify complex hierarchies of
Parameters from a single nested data structure.
readonly
If True, the user will not be allowed to edit this
Parameter. (default=False)
enabled
If False, any widget(s) for this parameter will appear
disabled. (default=True)
visible
If False, the Parameter will not appear when displayed
in a ParameterTree. (default=True)
renamable
If True, the user may rename this Parameter.
(default=False)
removable
If True, the user may remove this Parameter.
(default=False)
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment