python-gnuplot package not working in feisty fawn

Bug #110219 reported by Benny
8
Affects Status Importance Assigned to Milestone
python-gnuplot (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Making plots in python with gnuplot package via grid Data, is not working, see mailing list <email address hidden> of 23-4-2007

Installing from SVN solves this. Is it possible the configuration options are changed from the default?

I am on AMD64, kubuntu.

Revision history for this message
Edoardo Batini (edoardo-batini) wrote :

the mailing list reference is not correct...
can you check it please... it would help.

Revision history for this message
Benny (bm-cage) wrote :

I'm quite sure <email address hidden> is correct, I send a mail there, see https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users

In the meantime, I read on: https://help.ubuntu.com/community/FeistyUpgradesManual the following:
"You may want to run /usr/lib/python2.5/site-packages/DistUpgrade/apt-autoinst-fixup.py (from the update-manager package) also to fix a common problem with the automatically installed information"

Could that be involved? Obviously, as I reinstalled from SVN I cannote test if running the above could have solved anything.

Revision history for this message
Edoardo Batini (edoardo-batini) wrote :

Benny I followed that link and seem that your post has not been recorded...
can you give more details of th errors you received? for example import errors or whatever...
and if you have a little 'now' working script to use as test base?

Revision history for this message
Benny (bm-cage) wrote :

I think I understand, I send the mail without a subject header, and probably that causes errors somewhere.
If you install gnuplot python package, test.py and demo.py are installed in: /usr/lib/python2.5/site-packages/Gnuplot/

running test.py failed on my feisty install on the griddata section. I think also demo.py failed, but I'm not sure.

My mail to the bug list was:
-------
Hi,

I upgraded my PC to Feisty, and gnuplot gives wrong results.

Inline passing of Data no longer works.
Running eg test.py :

############### test GridData and compute_GridData ##########
a function of two variables from a GridData file
Press return to show results...
Warning: empty x range [-10:-10], adjusting to [-9.9:-10.1]
Warning: empty y range [-0.839072:-0.839072], adjusting to [-0.830681:-0.847462]
Warning: empty z range [0.544021:0.544021], adjusting to [0.538581:0.549461]

further:

gnuplot> set parametric
gnuplot> set data style lines
gnuplot> set hidden
gnuplot> set contour base
gnuplot> set xlabel "x"
gnuplot> set ylabel "y"
gnuplot> splot '/tmp/tmpYPH6zP' notitle
Same thing, inline data
Press return to show results...
Warning: empty x range [0:0], adjusting to [-1:1]
Warning: empty y range [-1.5:-1.5], adjusting to [-1.485:-1.515]
Warning: empty z range [-2.25:-2.25], adjusting to [-2.2275:-2.2725]
Notice: cannot contour non grid data!
Notice: No surface grid anything could be hidden behind
         line 24: *All* edges undefined or out of range, thus no plot.

I am on AMD64, dual core, standard Feisty packages (so python-gnuplot 1.7)

Anything I can do to get my code working again quickly?
--------
Somebody replied with:
I had the same problem yesterday. I solved by using python2.4 instead
of python2.5 which comes with Feisty as default. I couldn't find a
better solution.

Hope that helps,
------
However, that did not work for me too. Installing SVN version did work however.

Revision history for this message
Edoardo Batini (edoardo-batini) wrote :

Benny,
running python-gnuplot test.py on my pc works nicely, except for all 'with' warnings. Here's the output:

############### test GridData and compute_GridData ##########
a function of two variables from a GridData file
Press return to show results...

gnuplot> set parametric
gnuplot> set data style lines
gnuplot> set hidden
gnuplot> set contour base
gnuplot> set xlabel "x"
gnuplot> set ylabel "y"
gnuplot> splot '/tmp/tmpzYYp9E' notitle
Same thing, inline data
Press return to show results...

gnuplot> splot '-' notitle
The same thing using binary mode
Press return to show results...

gnuplot> splot '/tmp/tmpTRa7AC' binary notitle
The same thing using compute_GridData to tabulate function
Press return to show results...

gnuplot> splot '/tmp/tmpVKyEWW' binary notitle
Use compute_GridData in ufunc and binary mode
Press return to show results...

gnuplot> splot '/tmp/tmpJp8lbP' binary notitle
And now rotate it a bit
Press return to show results...

gnuplot> set view 60, 35
gnuplot> splot '/tmp/tmp3Idtw0' binary notitle
gnuplot> set view 60, 40
gnuplot> splot '/tmp/tmp2MESgp' binary notitle
gnuplot> set view 60, 45
gnuplot> splot '/tmp/tmpKxZtaZ' binary notitle
gnuplot> set view 60, 50
gnuplot> splot '/tmp/tmpPMhxyv' binary notitle
gnuplot> set view 60, 55
gnuplot> splot '/tmp/tmpN1zoHX' binary notitle
gnuplot> set view 60, 60
gnuplot> splot '/tmp/tmpBTlN-m' binary notitle
gnuplot> set view 60, 65
gnuplot> splot '/tmp/tmpvDK_Mw' binary notitle
Press return to end the test.

Same thing for demo.py:
I get no errors

Revision history for this message
Benny (bm-cage) wrote :

You know how it goes with these type of errors, small differences in architecture, difficult to find.
Due to the amount of bugs fixed in latest version, and it working it the latest version, one cannot blame the developer not to be interested.
Two people had this behaviour.

Note that the latest version does not have the annoying with warnings anymore, as changes have been done to make it comply with python 2.5

Revision history for this message
Edoardo Batini (edoardo-batini) wrote :

I had some hypothesis but as everything works on my system it's quite difficult for me to investigate further.
I've checked the developers svn repository and it seems that many things are changing. Perhaps the best thing to do is to wait for their next release...

Revision history for this message
Nicolas Albert (nicoa380) wrote :

Same bug in Ubuntu Feisty 7.04 64 bits, python2.5 and python-gnuplot 1.7-7

Now, I use the SVN version.

Revision history for this message
Benny (bm-cage) wrote :

As you can see on my first post, also I was using 64 bit

Revision history for this message
Edoardo Batini (edoardo-batini) wrote :

It seems to be a 64 bit matter.
I run a 32bit Ubuntu, so no way to test.
Hope the some other wil start from here.

Revision history for this message
T (tcr2) wrote :

I'm running Ubuntu on an AMD64 machine and this bug just crawled out of hiding for me today. I've written some custom libraries on top of this module that I use for day-to-day work, and they just all broke.

When I run test.py I get errors like
"""
gnuplot> plot '/tmp/tmpPUG4IK' notitle
Plot Data, specified column-by-column
Press return to show results...
Warning: empty x range [0:0], adjusting to [-1:1]
Warning: empty y range [0.544021:0.544021], adjusting to [0.538581:0.549461]

gnuplot> plot '/tmp/tmp4ymte-' notitle
Same thing, inline data
Press return to show results...
Warning: empty x range [-10:-10], adjusting to [-9.9:-10.1]
Warning: empty y range [0.544021:0.544021], adjusting to [0.538581:0.549461]
"""

When I try things by hand, only the first point in the data sets gets plotted, and it looks like
the auto-range command fails in the standard way as a result. I'm running Gutsy with
python2.5 right now.

Revision history for this message
Rumith (rumith) wrote :

Confirmed. I encounter this behavior on Gutsy AMD64. Apparently, the problem lies in Gnuplot.Data() function, since e.g. Gnuplot.File() gives correct results.

Revision history for this message
David Rinck (pax1728) wrote :

Hi.

I also had the same problem on 64-bit Gutsy

Installing Gnupy 1.8 fixed this.

It's not yet in the repository, but you can download it from http://sourceforge.net/projects/gnuplot-py/

Daniel T Chen (crimsun)
Changed in python-gnuplot:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.