Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting broken on MacOSX #16

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 1 comment
Open

Plotting broken on MacOSX #16

GoogleCodeExporter opened this issue Mar 15, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

aes248203:scitools-0.7 $ sudo python setup.py install --easyviz_backend gnuplot
after except!!!!!!!!!!!!!!!!
default scitools.easyviz backend becomes gnuplot (could be set by the 
--easyviz_backend option to setup.py)

Could not import module "Gnuplot" - it is not installed on your system. You 
need to install the Gnuplot.py package.

Also,

>>> from scitools.std import *
scitools.easyviz backend is gnuplot
>>> x = linspace(0, 1, 51)
>>> plot(x, sin(x))
Traceback (most recent call last):

File "<stdin>", line 1, in <module> File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-pac
kages/scitools/easyviz/common.py", line 3060, in plot
self.replot()
File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-pac
kages/scitools/easyviz/gnuplot.py", line 1099, in replot
self.g.reset()
File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/Gnuplot/Gnuplot.py", line 366, in reset
self('reset')
File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/Gnuplot/Gnuplot.py", line 210, in call
self.gnuplot(s)
File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/Gnuplot/gp_macosx.py", line 144, in call
self.flush()
IOError: 32? Broken pipe


What is the expected output?

A plot of the sine function.

 What do you see instead?

Nothing.

What version of the product are you using? On what operating system?

MacOSX 10.6.6, python 2.6 installed via MacPorts, Scitools 0.7

Please provide any additional information below.

Please note that both gnuplot and Gnuplot.py are installed on my system and 
work fine. In particular,

$ gnuplot
Terminal type set to 'aqua'
gnuplot> plot sin(x)

works as expected, as does

$ python
>>> import Gnuplot
>>> from numpy import *
>>> g = Gnuplot.Gnuplot(debug=1)
gnuplot> set terminal aqua
>>> x = arange(10, dtype='float_')
>>> y1 = x**2
>>> d = Gnuplot.Data(x, y1)
>>> g.plot(Gnuplot.Func('x**2'))
gnuplot> plot x**2 
>>>

Original issue reported on code.google.com by [email protected] on 9 Feb 2011 at 8:23

@GoogleCodeExporter
Copy link
Author

Hi, can you please check if you still see this issue in SciTools 0.8 (released 
today)?

Original comment by [email protected] on 22 Feb 2011 at 1:54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant