[python-gnuplot] plot() function plots only one point of data
Bug #325343 reported by
Kohlrabi
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-gnuplot (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-gnuplot
Kubuntu 8.04
Architecture: amd64
python-gnuplot version: 1.7.7
When creating a data set in python and trying to plot it the python-gnuplot function plot(data) only plots one point of the data. Using the current version from sourceforge (1.8) this bug doesn't happen, though zooming in is not possible (which should be possible with the ubuntu package, but this just crashes). Updating to the newsest version should fix the bug.
example code:
import Gnuplot
data = [[3,4],
gp = Gnuplot.
gp('set data style lines')
gp.plot(data) # this will plot only the first value
I installed the newer package from Intrepid, available at http:// packages. ubuntu. com/intrepid/ python- gnuplot (all its dependencies are satisfied on 8.04, too). As far as I can tell this doesn't exhibit the one-data point bug. I'm not sure how to zoom though, so I couldn't get the module to either crash or zoom, as per your report.