[Matplotlib-users] problem with show()

2007-02-05 Thread Chiara Caronna
I, I have a problem with showing plot. When I run this code: figure(1) semilogx(data[:,0],data[:,1]) savefig('try.png') show() It save the plot properly, but it doesn't show it. I tried to run it with "--verbose-helpful" and this is the output: matplotlib data path /usr/local/lib/python2.4/sit

[Matplotlib-users] Importing Binary files

2007-02-05 Thread Vijay Kumar
Hi, I want to import binary files generated from C/FORTRAN into matplotlib for plotting. Can this be done using 'load'? Thanks Vijay -- View this message in context: http://www.nabble.com/Importing-Binary-files-tf3160763.html#a8766615 Sent from the matplotlib - users mailing list archive at N

[Matplotlib-users] Importing Binary files

2007-02-05 Thread Vijay Kumar
Hi, I want to import binary files generated from C/FORTRAN into matplotlib for plotting. Can this be done using 'load'? Thanks Vijay -- View this message in context: http://www.nabble.com/Importing-Binary-files-tf3160765.html#a8766617 Sent from the matplotlib - users mailing list archive at N

[Matplotlib-users] transformations

2007-02-05 Thread Nicolas
Hello, I tried to use some affine transformations, but it didn't match to get it works. I use matplotlib 0.87.5 with python 2.4.3 and Numeric 24.2 on winXP. I tried for example : plot([1,0,1],[0,1,0], transform = matplotlib.transforms.Affine(0,1,1,0,0,0)) Then I got : Traceback (most recent call

[Matplotlib-users] Fwd: matplotlib can't find pygtk during build

2007-02-05 Thread Stephen Uhlhorn
Sorry for the forward... I wanted to make sure this made it to the list. -- Forwarded message -- From: Stephen Uhlhorn <[EMAIL PROTECTED]> Date: Feb 4, 2007 8:02 AM Subject: Re: [Matplotlib-users] matplotlib can't find pygtk during build To: Christopher Barker <[EMAIL PROTECTED]>

Re: [Matplotlib-users] Importing Binary files

2007-02-05 Thread humufr
Le Friday 02 February 2007 08:14:37 Vijay Kumar, vous avez écrit : > Hi, > > I want to import binary files generated from C/FORTRAN into matplotlib for > plotting. > Can this be done using 'load'? > > Thanks > Vijay no load can read only text file. --

Re: [Matplotlib-users] Importing Binary files

2007-02-05 Thread Kumar Appaiah
On Fri, Feb 02, 2007 at 05:14:37AM -0800, Vijay Kumar wrote: > > Hi, > > I want to import binary files generated from C/FORTRAN into matplotlib for > plotting. > Can this be done using 'load'? If you are using SciPy, scipy.io has a few functions which may help. scipy.io.fromfile, for example.

Re: [Matplotlib-users] Importing Binary files

2007-02-05 Thread Steve Schmerler
Kumar Appaiah wrote: > On Fri, Feb 02, 2007 at 05:14:37AM -0800, Vijay Kumar wrote: >> Hi, >> >> I want to import binary files generated from C/FORTRAN into matplotlib for >> plotting. >> Can this be done using 'load'? > > If you are using SciPy, scipy.io has a few functions which may > help. sci

Re: [Matplotlib-users] Importing Binary files

2007-02-05 Thread Christopher Barker
>>> I want to import binary files generated from C/FORTRAN into matplotlib for >>> plotting. if it's just a block of bytes in a standard type from and n-d array, you can use numpy.fromfile() If not, then you may have to read through the file in chunks, with various calls to file.read(), to get

Re: [Matplotlib-users] matplotlib can't find pygtk during build

2007-02-05 Thread Christopher Barker
Stephen Uhlhorn wrote: > My python is from ActiveState (Framework) which > was recommended by the scipy people. I wonder why, I don't what the advantages of it are over the pythonmac version -- last I heard it did NOT support Universal binaries, but maybe that makes things a bit easier, particul

Re: [Matplotlib-users] matplotlib can't find pygtk during build

2007-02-05 Thread Russell E Owen
At 9:42 AM -0800 2007-02-05, Christopher Barker wrote: >Stephen Uhlhorn wrote: >>My python is from ActiveState (Framework) which >>was recommended by the scipy people. > >>Here's the real saga. I had a working Fink installaiton of >>python/numpy/scipy/matplotlib until an update to scipy broke criti

Re: [Matplotlib-users] matplotlib can't find pygtk during build

2007-02-05 Thread Christopher Barker
Stephen: Russell E Owen wrote: > It's up. Bob Ippolito put it up shortly after he got back from vacation. So this should work, with the Python, numpy, wxPython2.6.3 that are also there: http://pythonmac.org/packages/py24-fat/index.html -Chris -- Christopher Barker, Ph.D. Oceanographer Eme

Re: [Matplotlib-users] matplotlib can't find pygtk during build

2007-02-05 Thread Stephen Uhlhorn
Hmm... After the long discussion I'm trying to decide what the best route is. If what I want is simply a stable scipy/matplotlib installation (OS X), what is the best (most stable and predictable) method? BTW- What is wrong with the ActiveState python installation? It was recommended on the scipy

Re: [Matplotlib-users] lasso demo

2007-02-05 Thread John Hunter
On 2/4/07, JJ <[EMAIL PROTECTED]> wrote: > Hello. > I am new at matplotlib and am trying to modify the > lasso demo so that a line is drawn aound the polygon > made of selected points, and so that this polygon area > is shaded. Ive added the following code to the > callback function but receive th

Re: [Matplotlib-users] transformations

2007-02-05 Thread John Hunter
On 2/1/07, Nicolas <[EMAIL PROTECTED]> wrote: > I tried to use some affine transformations, but it didn't match to get it > works. > I use matplotlib 0.87.5 with python 2.4.3 and Numeric 24.2 on winXP. > > I tried for example : > plot([1,0,1],[0,1,0], transform = matplotlib.transforms.Affine(0,1,1

Re: [Matplotlib-users] matplotlib can't find pygtk during build

2007-02-05 Thread Christopher Barker
Stephen Uhlhorn wrote: > If what I want is simply a stable scipy/matplotlib > installation (OS X), what is the best (most stable and predictable) > method? I'm very sorry to say that I don't know that there is a best. I, and others, have tried to keep the archive at pythonmac up to date, but bui

Re: [Matplotlib-users] Image Zooming and Dragging

2007-02-05 Thread John Hunter
On 2/4/07, David Levitan <[EMAIL PROTECTED]> wrote: > I'm trying to create an application that, among other things, will allow > me to view an image, zoom into it, and move it around. Essentially what > I can do by using imshow and show in ipython. However, I've noticed that > in both interactive

Re: [Matplotlib-users] problem with show()

2007-02-05 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Chiara Caronna <[EMAIL PROTECTED]> wrote: > I, > I have a problem with showing plot. When I run this code: > > figure(1) > semilogx(data[:,0],data[:,1]) > savefig('try.png') > show() > > > It save the plot properly, but it doesn't show it. I tried to run it > wi

[Matplotlib-users] Event attributes

2007-02-05 Thread Martin Wilson
Hi, I'm using matplotlib in a GTK gui canvas with the GTKAgg backend. I'm connecting a mouse click 'button_press_event' to the click function. If I choose print event.x everything works fine. However I'm after the x value in terms of the x-axis not pixels. When I try print event.xdata I ge

[Matplotlib-users] additions to lasso_demo.py

2007-02-05 Thread JJ
Hello. In case it is of use to anyone, here is a revised lasso_demo.py that draws a polygon around selected points, deletes points with a click of the middle mouse button, and adds points with a right click. Thanks John H for the help getting started. I am just learning and do have a couple of q

[Matplotlib-users] Agg eps and bounding box / OO problems

2007-02-05 Thread Berthold Höllmann
With the script from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from matplotlib.figure import Figure from matplotlib.patches import Rectangle fig = Figure() canvas = FigureCanvas(fig) ax = fig.add_subplot(111) ax.plot([.5,.7],[1.5, 2.5]) ax.add_artist(Rectangle((.

Re: [Matplotlib-users] Agg eps and bounding box / OO problems

2007-02-05 Thread Darren Dale
On Monday 05 February 2007 04:06:45 pm Berthold Höllmann wrote: > With the script > > > from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas > from matplotlib.figure import Figure > from matplotlib.patches import Rectangle > fig = Figure() > canvas = FigureCanvas(fig) >

Re: [Matplotlib-users] Event attributes

2007-02-05 Thread John Hunter
On 2/5/07, Martin Wilson <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using matplotlib in a GTK gui canvas with the GTKAgg backend. I'm > connecting a mouse click 'button_press_event' to the click function. If > I choose print event.x everything works fine. However I'm after the x > value in terms o

[Matplotlib-users] Trying

2007-02-05 Thread Michael Lerner
Hi, I have some data where I'd like almost all of it to be plotted with a LinearSegmentedColormap that I've made, but I have a few special values that I'd like to set to specific colors (white, in this case). So, I made a LinearSegmentedColormap that works pretty well, but I'm having trouble with

Re: [Matplotlib-users] Agg eps and bounding box / OO problems

2007-02-05 Thread John Hunter
On 2/5/07, Berthold Höllmann <[EMAIL PROTECTED]> wrote: > I get a file 'test.eps'. Using matplotlib 0.87.7 the PS bounding box > of the generated plot is far to wide. Is this a problem with my script > or a Problem of FigureCanvasAgg (and FigureCanvasPS)? What can I do to > get a tight bounding bo

Re: [Matplotlib-users] Trying

2007-02-05 Thread John Hunter
On 2/5/07, Michael Lerner <[EMAIL PROTECTED]> wrote: > Hi, > > I have some data where I'd like almost all of it to be plotted with a > LinearSegmentedColormap that I've made, but I have a few special > values that I'd like to set to specific colors (white, in this case). > So, I made a LinearSegmen

Re: [Matplotlib-users] Agg eps and bounding box / OO problems

2007-02-05 Thread Darren Dale
On Monday 05 February 2007 04:57:40 pm John Hunter wrote: > On 2/5/07, Berthold Höllmann <[EMAIL PROTECTED]> wrote: > > I get a file 'test.eps'. Using matplotlib 0.87.7 the PS bounding box > > of the generated plot is far to wide. Is this a problem with my script > > or a Problem of FigureCanvasAgg

Re: [Matplotlib-users] additions to lasso_demo.py

2007-02-05 Thread John Hunter
On 2/5/07, JJ <[EMAIL PROTECTED]> wrote: > I am just learning and do have a couple of questions. > Why is the lock on lasso needed in the original demo. > For my revised version, it works better without it (a > right click without dragging caused an infinite lock). The locking is designed to prev

Re: [Matplotlib-users] Agg eps and bounding box / OO problems

2007-02-05 Thread John Hunter
On 2/5/07, Darren Dale <[EMAIL PROTECTED]> wrote: > I respectfully disagree. The current behavior is consistent with other output > formats, such as png. If we want to support tight bounding boxes, maybe it > would be better to do so with a kwarg. I'm happy to be wrong (especially because then we

Re: [Matplotlib-users] Agg eps and bounding box / OO problems

2007-02-05 Thread Darren Dale
On Monday 05 February 2007 05:23:04 pm John Hunter wrote: > On 2/5/07, Darren Dale <[EMAIL PROTECTED]> wrote: > > I respectfully disagree. The current behavior is consistent with other > > output formats, such as png. If we want to support tight bounding boxes, > > maybe it would be better to do so

Re: [Matplotlib-users] Agg eps and bounding box / OO problems

2007-02-05 Thread Berthold Höllmann
"John Hunter" <[EMAIL PROTECTED]> writes: > On 2/5/07, Berthold Höllmann wrote: > >> I get a file 'test.eps'. Using matplotlib 0.87.7 the PS bounding box >> of the generated plot is far to wide. Is this a problem with my script >> or a Problem of FigureCanvasAgg (and FigureCanvasPS)? What can I d

Re: [Matplotlib-users] Agg eps and bounding box / OO problems

2007-02-05 Thread Eric Firing
Darren Dale wrote: [...] > Perhaps reducing the image size to the visible elements would be a good > option > for all output formats? This sounds to me like a very desirable option to have. I have not thought at all about implementation, though. Eric -

[Matplotlib-users] Newbie trying to get matplotlib up and running on Mac mini.....

2007-02-05 Thread Jonathan Kane
Hi, I have a Mac mini with Intel Duo processors. I downloaded and installed python, numpy, and scipy on my machine. I downloaded already built binaries from the website http://www.scipy.org/Download The file I downloaded was ScipySuperpack-Intel-10.4-py2.4 matplotlib was a part of that pack

Re: [Matplotlib-users] Newbie trying to get matplotlib up and running on Mac mini.....

2007-02-05 Thread Robert Kern
Jonathan Kane wrote: > Hi, >I have a Mac mini with Intel Duo processors. I downloaded and > installed python, numpy, and scipy on my machine. I downloaded already > built binaries from the website http://www.scipy.org/Download > > The file I downloaded was ScipySuperpack-Intel-10.4-py2.4 > m

[Matplotlib-users] Benefits/Disadvantages

2007-02-05 Thread ACR
I have recently been exploring Matplotlib and have found a wealth of helpful articles, including tutorials, articles and examples - but I don't have enough experience to generate a full opinion of Matplotlib. I realize that Matplotlib is well-developed and has a lot of great capabilities - but I

[Matplotlib-users] Benefits/Disadvantages

2007-02-05 Thread lacer
I have recently been exploring Matplotlib and have found a wealth of helpful articles, including tutorials, articles and examples - but I don't have enough experience to generate a full opinion of Matplotlib. I realize that Matplotlib is well-developed and has a lot of great capabilities - but I