Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benjamin Jakimow
EO Time Series Viewer
Commits
2a2f19b2
Commit
2a2f19b2
authored
Mar 23, 2012
by
Luke Campagnola
Browse files
bugfixes
parent
1d66063d
Changes
5
Hide whitespace changes
Inline
Side-by-side
__init__.py
View file @
2a2f19b2
...
...
@@ -112,7 +112,18 @@ def plot(*args, **kargs):
#w = PlotWindow()
#if len(args)+len(kargs) > 0:
#w.plot(*args, **kargs)
w
=
PlotWindow
(
*
args
,
**
kargs
)
pwArgList
=
[
'title'
,
'label'
,
'name'
,
'left'
,
'right'
,
'top'
,
'bottom'
]
pwArgs
=
{}
dataArgs
=
{}
for
k
in
kargs
:
if
k
in
pwArgList
:
pwArgs
[
k
]
=
kargs
[
k
]
else
:
dataArgs
[
k
]
=
kargs
[
k
]
w
=
PlotWindow
(
**
pwArgs
)
w
.
plot
(
*
args
,
**
dataArgs
)
plots
.
append
(
w
)
w
.
show
()
return
w
...
...
examples/Arrow.py
View file @
2a2f19b2
...
...
@@ -32,5 +32,6 @@ anim = a.makeAnimation(loop=-1)
anim
.
start
()
## Start Qt event loop unless running in interactive mode or using pyside.
import
sys
if
(
sys
.
flags
.
interactive
!=
1
)
or
not
hasattr
(
QtCore
,
'PYQT_VERSION'
):
app
.
exec_
()
examples/Draw.py
View file @
2a2f19b2
...
...
@@ -38,5 +38,6 @@ img.setDrawKernel(kern, mask=kern, center=(1,1), mode='add')
img
.
setLevels
([
0
,
10
])
## Start Qt event loop unless running in interactive mode or using pyside.
import
sys
if
(
sys
.
flags
.
interactive
!=
1
)
or
not
hasattr
(
QtCore
,
'PYQT_VERSION'
):
app
.
exec_
()
examples/__main__.py
View file @
2a2f19b2
...
...
@@ -24,22 +24,22 @@ examples = OrderedDict([
])),
(
'Widgets'
,
OrderedDict
([
(
'PlotWidget'
,
'PlotWidget.py'
),
(
'SpinBox'
,
'../widgets/SpinBox.py'
),
#
('SpinBox', '../widgets/SpinBox.py'),
(
'TreeWidget'
,
'../widgets/TreeWidget.py'
),
(
'DataTreeWidget'
,
'../widgets/DataTreeWidget.py'
),
(
'GradientWidget'
,
'../widgets/GradientWidget.py'
),
(
'TableWidget'
,
'../widgets/TableWidget.py'
),
#
('TableWidget', '../widgets/TableWidget.py'),
(
'ColorButton'
,
'../widgets/ColorButton.py'
),
(
'CheckTable'
,
'../widgets/CheckTable.py'
),
(
'VerticalLabel'
,
'../widgets/VerticalLabel.py'
),
#
('CheckTable', '../widgets/CheckTable.py'),
#
('VerticalLabel', '../widgets/VerticalLabel.py'),
(
'JoystickButton'
,
'../widgets/JoystickButton.py'
),
])),
(
'ImageView'
,
'ImageView.py'
),
(
'GraphicsScene'
,
'GraphicsScene.py'
),
(
'Flowcharts'
,
'Flowchart.py'
),
(
'ParameterTree'
,
'../parametertree'
),
(
'Canvas'
,
'../canvas'
),
(
'MultiPlotWidget'
,
'MultiPlotWidget.py'
),
#
('Canvas', '../canvas'),
#
('MultiPlotWidget', 'MultiPlotWidget.py'),
])
path
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
...
...
exporters/Exporter.py
View file @
2a2f19b2
...
...
@@ -115,7 +115,7 @@ class Exporter(object):
return
preItems
+
rootItem
+
postItems
def
render
(
self
,
painter
,
sourcRect
,
target
Rect
,
item
=
None
):
def
render
(
self
,
painter
,
targetRect
,
source
Rect
,
item
=
None
):
#if item is None:
#item = self.item
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment