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
6d01aa2b
Commit
6d01aa2b
authored
Jul 03, 2012
by
Luke Campagnola
Browse files
Bugfixes:
- workaround for PySide exit crash - fixed alpha of major/minor grid lines
parent
73e94f54
Changes
4
Hide whitespace changes
Inline
Side-by-side
graphicsItems/AxisItem.py
View file @
6d01aa2b
...
...
@@ -559,7 +559,7 @@ class AxisItem(GraphicsWidget):
lineAlpha
=
255
/
(
i
+
1
)
if
self
.
grid
is
not
False
:
lineAlpha
=
self
.
grid
lineAlpha
*
=
self
.
grid
/
255.
*
np
.
clip
((
0.05
*
lengthInPixels
/
(
len
(
ticks
)
+
1
)),
0.
,
1.
)
for
v
in
ticks
:
## determine actual position to draw this tick
...
...
graphicsItems/PlotItem/plotConfigTemplate.py
View file @
6d01aa2b
...
...
@@ -116,7 +116,7 @@ class Ui_Form(object):
self
.
gridLayout_2
.
addWidget
(
self
.
yGridCheck
,
1
,
0
,
1
,
2
)
self
.
gridAlphaSlider
=
QtGui
.
QSlider
(
self
.
gridGroup
)
self
.
gridAlphaSlider
.
setMaximum
(
255
)
self
.
gridAlphaSlider
.
setProperty
(
"value"
,
70
)
self
.
gridAlphaSlider
.
setProperty
(
"value"
,
128
)
self
.
gridAlphaSlider
.
setOrientation
(
QtCore
.
Qt
.
Horizontal
)
self
.
gridAlphaSlider
.
setObjectName
(
_fromUtf8
(
"gridAlphaSlider"
))
self
.
gridLayout_2
.
addWidget
(
self
.
gridAlphaSlider
,
2
,
1
,
1
,
1
)
...
...
graphicsItems/PlotItem/plotConfigTemplate.ui
View file @
6d01aa2b
...
...
@@ -221,7 +221,7 @@
<number>
255
</number>
</property>
<property
name=
"value"
>
<number>
70
</number>
<number>
128
</number>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
...
...
widgets/GraphicsView.py
View file @
6d01aa2b
...
...
@@ -104,6 +104,11 @@ class GraphicsView(QtGui.QGraphicsView):
self
.
sceneObj
=
GraphicsScene
()
self
.
setScene
(
self
.
sceneObj
)
## Workaround for PySide crash
## This ensures that the scene will outlive the view.
if
pyqtgraph
.
Qt
.
USE_PYSIDE
:
self
.
sceneObj
.
_view_ref_workaround
=
self
## by default we set up a central widget with a grid layout.
## this can be replaced if needed.
self
.
centralWidget
=
None
...
...
Write
Preview
Markdown
is supported
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