By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,660 Members | 1,102 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,660 IT Pros & Developers. It's quick & easy.

Plot with scipy

P: n/a
Hi all,

I've just downloaded scipy v 0.5.2 and I would like to be able to draw
plots. I've tried:
import scipy.gplt
import scipy.plt
import scipy.xplt

and none of them work. Are these modules still included in scipy ? If
not, where can I find them ?

Thanks for your answers,

Cédric

May 4 '07 #1
Share this Question
Share on Google+
6 Replies


P: n/a
In article <11**********************@n59g2000hsh.googlegroups .com>,
redcic <ce***********@gmail.comwrote:
Hi all,

I've just downloaded scipy v 0.5.2 and I would like to be able to draw
plots. I've tried:
import scipy.gplt
import scipy.plt
import scipy.xplt

and none of them work. Are these modules still included in scipy ? If
not, where can I find them ?

Thanks for your answers,

Cédric
You really want matplotlib and PyLab the library built on top of it.
Search on the python.org site for examples. Google will turn up a lot.
Matplotlib w/ PyLab is a nice, easy plotting package.
May 4 '07 #2

P: n/a
I've already got this package. I just wanted to try something new.

However, since you talk about it, I've got a question regarding this
package. The execution of the code stops after the line:
pylab.show()
which is off course the last line of my code. My problem is that I
have to close the figure window in order to launch my program another
time. I'd like to be able to launch my program many times with
different parameters without having to close the figure windows before
each launch.
Just so you know, I'm using TkAgg backend.

Any hint ?

Thanks,

Cédric

On 4 mai, 15:49, Lou Pecora <pec...@anvil.nrl.navy.milwrote:
In article <1178283196.755609.241...@n59g2000hsh.googlegroups .com>,

redcic <cedric.lou...@gmail.comwrote:
Hi all,
I've just downloaded scipy v 0.5.2 and I would like to be able to draw
plots. I've tried:
import scipy.gplt
import scipy.plt
import scipy.xplt
and none of them work. Are these modules still included in scipy ? If
not, where can I find them ?
Thanks for your answers,
Cédric

You really want matplotlib and PyLab the library built on top of it.
Search on the python.org site for examples. Google will turn up a lot.
Matplotlib w/ PyLab is a nice, easy plotting package.

May 4 '07 #3

P: n/a
In article <11**********************@h2g2000hsg.googlegroups. com>,
redcic <ce***********@gmail.comwrote:
I've already got this package. I just wanted to try something new.

However, since you talk about it, I've got a question regarding this
package. The execution of the code stops after the line:
pylab.show()
which is off course the last line of my code. My problem is that I
have to close the figure window in order to launch my program another
time. I'd like to be able to launch my program many times with
different parameters without having to close the figure windows before
each launch.
Just so you know, I'm using TkAgg backend.

Any hint ?
Here's what I do and it works well. I am using a Mac so the text
programs I mention are available there, but I bet you can find similar
programs on Windows, Linus, or Unix (I think Emacs can do this, too).

I use a text editor to write the source code and launch it in a Terminal
window. On the Mac BBEdit does this and you can get its free version
TextWrangler. I can launch a program to do a plot, go back to the
editor to change somehting and launch it again all while the first plot
window is still open. I get two terminal windows waiting on the closing
of their respective plot windows. I can click on each plot window and
bring them to the front for comparison. Of course, I can continue to
launch more and compare many plot windows. Works for me.

Maybe there are other approaches that others can tell about.
May 6 '07 #4

P: n/a
On May 4, 8:53 am, redcic <cedric.lou...@gmail.comwrote:
Hi all,

I've just downloaded scipy v 0.5.2 and I would like to be able to draw
plots. I've tried:
import scipy.gplt
import scipy.plt
import scipy.xplt

and none of them work. Are these modules still included in scipy ? If
not, where can I find them ?

Thanks for your answers,

Cédric
As a lightweight alternative to matplotlib, you might be interested in
trying out my *small* (and functionally *limited*) code at:
http://code.google.com/p/graphn. I created it to be hopefully useful
around web graphs, but it only does line graphs and bar charts. It
requires the gd library, but nothing outside of that. I think it's
pretty easy to use, but obviously you'll have to be the judge of that.

May 7 '07 #5

P: n/a
On 4 Mai, 15:57, redcic <cedric.lou...@gmail.comwrote:
I've already got this package. I just wanted to try something new.

However, since you talk about it, I've got a question regarding this
package. The execution of the code stops after the line:
pylab.show()
which is off course the last line of my code. My problem is that I
have to close the figure window in order to launch my program another
time. I'd like to be able to launch my program many times with
different parameters without having to close the figure windows before
each launch.
Just so you know, I'm using TkAgg backend.

Any hint ?
There's an option in your matplotlibrc file (personal lives in
$HOME/.matplotlib, default in $PYTHONPATH/matplotlib/mpl-data):

#### CONFIGURATION BEGINS HERE
# the default backend; one of GTK GTKAgg GTKCairo FltkAgg QtAgg TkAgg
# Agg Cairo GD GDK Paint PS PDF SVG Template
backend : TkAgg
numerix : numpy # numpy, Numeric or numarray
interactive : True # see http://matplotlib.sourceforge.net/interactive.html
......

Take a look at the quoted webpage for details and troubleshooting.

Bernhard

May 7 '07 #6

P: n/a
Thank you all for your answers. Setting "interactive : True" is often
suggested to me but it does not solve my problem.
I tried different other things (following your advices) but I still
have the same problem. Maybe the source of my problem is the fact that
I use the SciTE editor. What do you think about that ? Any other
idea ?
Thanks again,
Cédric

On 7 mai, 14:50, "bernhard.vo...@gmail.com" <bernhard.vo...@gmail.com>
wrote:
On 4 Mai, 15:57, redcic <cedric.lou...@gmail.comwrote:
I've already got this package. I just wanted to try something new.
However, since you talk about it, I've got a question regarding this
package. The execution of the code stops after the line:
pylab.show()
which is off course the last line of my code. My problem is that I
have to close the figure window in order to launch my program another
time. I'd like to be able to launch my program many times with
different parameters without having to close the figure windows before
each launch.
Just so you know, I'm using TkAgg backend.
Any hint ?

There's an option in your matplotlibrc file (personal lives in
$HOME/.matplotlib, default in $PYTHONPATH/matplotlib/mpl-data):

#### CONFIGURATION BEGINS HERE
# the default backend; one of GTK GTKAgg GTKCairo FltkAgg QtAgg TkAgg
# Agg Cairo GD GDK Paint PS PDF SVG Template
backend : TkAgg
numerix : numpy # numpy, Numeric or numarray
interactive : True # seehttp://matplotlib.sourceforge.net/interactive.html
.....

Take a look at the quoted webpage for details and troubleshooting.

Bernhard

May 9 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.