473,695 Members | 2,951 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3813
In article <11************ **********@n59g 2000hsh.googleg roups.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.n rl.navy.milwrot e:
In article <1178283196.755 609.241...@n59g 2000hsh.googleg roups.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************ **********@h2g2 000hsg.googlegr oups.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 "interactiv e : 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.sour ceforge.net/interactive.htm l
.....

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
1765
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 I never get an acknowledgment that this module has been successfully imported. When I try to plot anything using SciPy's plt function, the
0
1387
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 # of plots in Y dir. -number or coordinates of current plot However, there seem to be only Numy and Numx. Documentation on this function is ...well... scarce ;)
8
3397
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 for your help, Matthias
8
4785
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 want to show them on a two dimensional plot by showing z(x,y) with colors. Thanks for any hint
1
8070
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 October 2004, and is not as thorough as Python's documentation. Is there an alternative source of information that lists all the functions and their usage? I tried using scipy.info to get information on the std function in the stats libary,...
0
1499
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 last several minutes, but in my case it only lasts a few seconds. Thanks in advance for any help. Julien Fiore
3
3353
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. Obviously, I should get back the same real gaussian, but what I get is not even close. Can anyone help me? Thanks in advance. <code> from scipy import * import pylab
2
3937
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): File "<interactive input>", line 1, in ? File "C:\PYTHON23\Lib\site-packages\scipy\stats\__init__.py", line 7, in ? from stats import * File "C:\PYTHON23\Lib\site-packages\scipy\stats\stats.py", line 191, in ? import scipy.special as special File...
2
2745
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 page), nothing happens - i.e. no information is printed on the console, and the setup application simply quits with no warning/error message. has anyone managed to succesfully install SciPy using scipy-0.6.0.win32-py2.5.exe & ActiveState Python on...
0
8619
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8971
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8824
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8817
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7651
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5831
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2994
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2258
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.