473,385 Members | 1,587 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Plot with scipy

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
6 3795
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: jose flanigan | last post by:
Hi, I am running python version 2.2 on a Windows NT machine. I have installed the latest version of wxPython and SciPy. However, when running pythonwin and attempting >> import gui_thread ...
0
by: Mathias | last post by:
Hi all, I'd like to display a number of pictures with xplt.imagesc() in the same window using xplt.subplot() Now I expected 3 or 4 parameters in subplot(): -total # of plots in X dir. -total #...
8
by: fortuneteller | last post by:
Hello, I'm quite new to python and Scipy. Anyway I want to use it to plot graphs. Does anybody know if there is the possibility to use Latex in SciPy's plotting functions like gplt? Thanks...
8
by: questions? | last post by:
I want to make a 3d plot. x is a vector(discrete), y is also a vector(discrete), for each pairwise x,y I have a value z(x,y)(it is not a function, just discrete values for each pair of x,y) I...
1
by: tkpmep | last post by:
I installed SciPy and NumPy (0.9.5, because 0.9.6 does not work with the current version of SciPy), and had some teething troubles. I looked around for help and observed that the tutorial is dated...
0
by: Julien Fiore | last post by:
Hi, I have problems trying to install the scipy.weave package. I run Python 2.4 on windows XP and my C compiler is MinGW. Below is the output of scipy.weave.test(). I read that the tests should...
3
by: Mike Duffy | last post by:
I've been debugging a simulation I wrote a while ago, and it seems that the problem is in the fft module itself. I'm trying a simple test by just feeding the function a basic real gaussian....
2
by: robert | last post by:
I'm using latest numpy & scipy. What is this problem ? : RuntimeError: module compiled against version 1000002 of C-API but this version of numpy is 1000009 Traceback (most recent call last):...
2
by: Frank Moyles | last post by:
Hi, I want to use SciPy library. I am using W2k, and ActiveState Python 2.5. I have succesfully numpy, but when I run the scipy-0.6.0.win32-py2.5.exe (from the downloads section on the SciPy...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.