plot function does not work with gnuplot (easyviz)

Bug #1168901 reported by Martin Lutz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
scitools (Ubuntu)
New
Undecided
Unassigned

Bug Description

Example code:

from scitools.std import *
t=linspace(0, 1, 100)
y=t
plot(t, y)

Error message:

Traceback (most recent call last):
  File "easyviz.py", line 4, in <module>
    plot(t, y)
  File "/usr/lib/pymodules/python2.7/scitools/easyviz/common.py", line 3136, in plot
    self._replot()
  File "/usr/lib/pymodules/python2.7/scitools/easyviz/gnuplot_.py", line 1161, in _replot
    self._g.reset()
  File "/usr/lib/python2.7/dist-packages/Gnuplot/_Gnuplot.py", line 367, in reset
    self('reset')
  File "/usr/lib/python2.7/dist-packages/Gnuplot/_Gnuplot.py", line 211, in __call__
    self.gnuplot(s)
  File "/usr/lib/python2.7/dist-packages/Gnuplot/gp_unix.py", line 210, in __call__
    self.flush()
IOError: [Errno 32] Broken pipe

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: python-scitools 0.9.0-1
ProcVersionSignature: Ubuntu 3.5.0-27.46-generic 3.5.7.7
Uname: Linux 3.5.0-27-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.6.1-0ubuntu10
Architecture: amd64
Date: Sun Apr 14 17:50:38 2013
InstallationDate: Installed on 2011-10-21 (541 days ago)
InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: scitools
UpgradeStatus: Upgraded to quantal on 2012-11-11 (154 days ago)

Revision history for this message
Martin Lutz (m-lutz) wrote :
Revision history for this message
Johannes Ring (johannr) wrote :

Try to start gnuplot from the command line and then run "test". Does that give you a plot? If not, try to install the gnuplot-x11 package. That should make gnuplot and scitools work as expected.

I'm not sure if this is a bug in python-scitools or python-gnuplot, but I lean towards the latter.

Revision history for this message
Martin Lutz (m-lutz) wrote :

I now see that this was the only computer without installed "gnuplot-x11" (instead there was "gnuplot-nox"). After the correct installation, everything works fine.

(I don't know whether this dependency problem belongs to "python-scitools" or "python-gnuplot").

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.