summaryrefslogtreecommitdiff
path: root/gr-wxgui/src/python/plotter/channel_plotter.py
diff options
context:
space:
mode:
authorjblum2008-09-02 18:13:40 +0000
committerjblum2008-09-02 18:13:40 +0000
commit580a21ac5aa342b79b8d616117478196c5072e71 (patch)
treef424f0dd6786a0bfac4d9cacaa9d198934f6cc5b /gr-wxgui/src/python/plotter/channel_plotter.py
parentec6d18c95d58707ad89f14e094bf592047048227 (diff)
downloadgnuradio-580a21ac5aa342b79b8d616117478196c5072e71.tar.gz
gnuradio-580a21ac5aa342b79b8d616117478196c5072e71.tar.bz2
gnuradio-580a21ac5aa342b79b8d616117478196c5072e71.zip
patched channel plotter -> Stefan BrĂ¼ns
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9484 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-wxgui/src/python/plotter/channel_plotter.py')
-rw-r--r--gr-wxgui/src/python/plotter/channel_plotter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-wxgui/src/python/plotter/channel_plotter.py b/gr-wxgui/src/python/plotter/channel_plotter.py
index 22126bd0b..e7e83e5fa 100644
--- a/gr-wxgui/src/python/plotter/channel_plotter.py
+++ b/gr-wxgui/src/python/plotter/channel_plotter.py
@@ -107,6 +107,7 @@ class channel_plotter(grid_plotter_base):
for channel in reversed(sorted(self._channels.keys())):
samples = self._channels[channel][SAMPLES_KEY]
num_samps = len(samples)
+ if not num_samps: continue
#use opengl to scale the waveform
glPushMatrix()
glTranslatef(self.padding_left, self.padding_top, 0)
@@ -128,7 +129,7 @@ class channel_plotter(grid_plotter_base):
glColor3f(*self._channels[channel][COLOR_SPEC_KEY])
marker = self._channels[channel][MARKERY_KEY]
if marker: glPointSize(marker)
- glVertexPointer(2, GL_FLOAT, 0, points)
+ glVertexPointerf(points)
glDrawArrays(marker is None and GL_LINE_STRIP or GL_POINTS, 0, len(points))
glPopMatrix()