[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r9484 - gnuradio/trunk/gr-wxgui/src/python/plotter
From: |
jblum |
Subject: |
[Commit-gnuradio] r9484 - gnuradio/trunk/gr-wxgui/src/python/plotter |
Date: |
Tue, 2 Sep 2008 12:13:44 -0600 (MDT) |
Author: jblum
Date: 2008-09-02 12:13:40 -0600 (Tue, 02 Sep 2008)
New Revision: 9484
Modified:
gnuradio/trunk/gr-wxgui/src/python/plotter/channel_plotter.py
Log:
patched channel plotter -> Stefan Br?\195?\188ns
Modified: gnuradio/trunk/gr-wxgui/src/python/plotter/channel_plotter.py
===================================================================
--- gnuradio/trunk/gr-wxgui/src/python/plotter/channel_plotter.py
2008-09-02 13:50:34 UTC (rev 9483)
+++ gnuradio/trunk/gr-wxgui/src/python/plotter/channel_plotter.py
2008-09-02 18:13:40 UTC (rev 9484)
@@ -107,6 +107,7 @@
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 @@
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()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r9484 - gnuradio/trunk/gr-wxgui/src/python/plotter,
jblum <=