[Matplotlib-users] Bug in errorbar/docstring?

2007-12-04 Thread Ryan May
Hi, I think there's a bug in errorbar in trying to use asymmetric y-errorbars. According to the docstring: xerr and yerr may be any of: a rank-0, Nx1 Numpy array - symmetric errorbars +/- value an N-element list or tuple - symmetric errorbars +/- value a rank-1, N

Re: [Matplotlib-users] Problems with binary install of matplotlib-0.9.1 python2.4 on windows

2007-12-04 Thread John Hunter
On Dec 4, 2007 8:14 AM, Charlie Moad <[EMAIL PROTECTED]> wrote: > I have posted fresh win32 eggs and exe's on SF. I explicitly removed > the inclusion of msvcp from distutils in numpy. Please give them a > try and let me know if you have any more problems. Note: I just > posted the files so it m

Re: [Matplotlib-users] RuntimeError after clearing and plotting for many times

2007-12-04 Thread Yongtao Cui
I don't know why those spaces always don't show up on the mailing list webpage. They looked fine on my gmail page. The 'test' function only has one 'for' loop. The four lines below the 'for' line are all in the loop. On Dec 4, 2007 8:52 PM, Yongtao Cui <[EMAIL PROTECTED]> wrote: > >>> import py

Re: [Matplotlib-users] RuntimeError after clearing and plotting for many times

2007-12-04 Thread Yongtao Cui
>>> import pylab >>> def test(n): >>> for i in range(n): >>> f=pylab.figure(1) >>> f.clf() >>> a=f.add_axes([0.2, 0.2, 0.6, 0.6]) >>> a.plot([1,2,3,4,5], 'ro') >>> I tracked down the svn tree. The above script works ok in revision 3737 and before, but crashe

Re: [Matplotlib-users] eggs or pythonmac packages on OS X?

2007-12-04 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Stephen Uhlhorn" <[EMAIL PROTECTED]> wrote: > I'm running MacPython 2.5 on Mac OS 10.5.1 and would like to update > matplotlib to 0.91.1. Im using mpl 0.90.1 from the pythonmac site now. > Is it better for me to wait till a pythonmac package is availabel or > a

Re: [Matplotlib-users] Bug in mathtext

2007-12-04 Thread Jörgen Stenarson
Michael Droettboom skrev: > Fernando Perez wrote: >> Hey Jorgen, >> >> On Dec 4, 2007 12:10 PM, Jörgen Stenarson <[EMAIL PROTECTED]> wrote: >>> Hi, >>> >>> I get a complete crash dumping me in the console when there are unknown >>> latex commands in a mathtext expression, this when doing interactiv

Re: [Matplotlib-users] Nested Subplots?

2007-12-04 Thread Shannon Jaeger
It sure is! For the top too you need subplot(2,2,1) and subplot(2,2,2) For the bottom plot subplot(2,1,2) They key to remember is the numrows x numcols defines the grid and the plot number defines where the plot goes in the grid. This is a tricky bit to wrap your head around initially bu

Re: [Matplotlib-users] [OT] Confusion with mailing lists

2007-12-04 Thread rex
massimo sandal <[EMAIL PROTECTED]> [2007-12-04 09:18]: >On a related note, I *hate* that hitting "reply" uses the mail address >of the parent poster, instead than that of the mailing list. The scipy >and the gentoo mailing list (two other examples I know) behave more >properly. Is this a sourcef

Re: [Matplotlib-users] eggs or pythonmac packages on OS X?

2007-12-04 Thread Christopher Barker
Stephen Uhlhorn wrote: > I'm running MacPython 2.5 on Mac OS 10.5.1 and would like to update > matplotlib to 0.91.1. Im using mpl 0.90.1 from the pythonmac site now. > Is it better for me to wait till a pythonmac package is availabel or > are the eggs on SF good to use. I'm pretty sure the goal is

Re: [Matplotlib-users] Bug in mathtext

2007-12-04 Thread Michael Droettboom
Fernando Perez wrote: > Hey Jorgen, > > On Dec 4, 2007 12:10 PM, Jörgen Stenarson <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I get a complete crash dumping me in the console when there are unknown >> latex commands in a mathtext expression, this when doing interactive >> stuff in ipython -pylab. >> >

Re: [Matplotlib-users] Bug in mathtext

2007-12-04 Thread Fernando Perez
Hey Jorgen, On Dec 4, 2007 12:10 PM, Jörgen Stenarson <[EMAIL PROTECTED]> wrote: > Hi, > > I get a complete crash dumping me in the console when there are unknown > latex commands in a mathtext expression, this when doing interactive > stuff in ipython -pylab. > > examples: > title("$|S_{11}|$")

Re: [Matplotlib-users] Bug in mathtext

2007-12-04 Thread Michael Droettboom
Jörgen Stenarson wrote: > Hi, > > I get a complete crash dumping me in the console when there are unknown > latex commands in a mathtext expression, this when doing interactive > stuff in ipython -pylab. That is on purpose. If you give mathtext something that is a syntax error, it throws an e

Re: [Matplotlib-users] matplotlib ignores CocoAff backend preference

2007-12-04 Thread Stephen Uhlhorn
I just started playing with the CocoaAgg backend in mpl 0.90.1 w/pyobjc 1.4 and matplotlib uses the 'backend' line in the rc file just fine. However, it doesn't seem to work well in interactive mode using ipython 0.8.1 (control is not returned to the shell after plotting). -stephen On Dec 4, 2007

[Matplotlib-users] Bug in mathtext

2007-12-04 Thread Jörgen Stenarson
Hi, I get a complete crash dumping me in the console when there are unknown latex commands in a mathtext expression, this when doing interactive stuff in ipython -pylab. examples: title("$|S_{11}|$") title("$\vbar S_{11} \vbar$") I would also like to see an alias between | and \vert like the

Re: [Matplotlib-users] matplotlib ignores CocoAff backend preference

2007-12-04 Thread Chris Fonnesbeck
Of course, I meant CocoaAgg, not -Aff. cf On Dec 4, 2007 1:49 PM, Chris Fonnesbeck <[EMAIL PROTECTED]> wrote: > I have the CocoaAgg backend specified in matplotlibrc in ~/.matplotlib/ as: > > backend : CocoaAgg > > However, when I plot, matplotlib uses the TkAgg backend in spite of this. > >

Re: [Matplotlib-users] Problems with binary install of matplotlib-0.9.1 python2.4 on windows

2007-12-04 Thread Jörgen Stenarson
Charlie Moad skrev: > I have posted fresh win32 eggs and exe's on SF. I explicitly removed > the inclusion of msvcp from distutils in numpy. Please give them a > try and let me know if you have any more problems. Note: I just > posted the files so it might take a while for them to propagate. >

Re: [Matplotlib-users] Nested Subplots?

2007-12-04 Thread John Hunter
On Dec 4, 2007 12:19 PM, Tom Johnson <[EMAIL PROTECTED]> wrote: > Is it possible to have nested subplots? > > I would like to have 2 rowswith the top row having two columns and > the bottom row having one column. > > For the bottom plot, I'd like to be able to choose between the following: >

[Matplotlib-users] matplotlib ignores CocoAff backend preference

2007-12-04 Thread Chris Fonnesbeck
I have the CocoaAgg backend specified in matplotlibrc in ~/.matplotlib/ as: backend : CocoaAgg However, when I plot, matplotlib uses the TkAgg backend in spite of this. -- Christopher J. Fonnesbeck + Fish & Wildlife Research Institute (FWC) + 727.235.5570 -

[Matplotlib-users] eggs or pythonmac packages on OS X?

2007-12-04 Thread Stephen Uhlhorn
I'm running MacPython 2.5 on Mac OS 10.5.1 and would like to update matplotlib to 0.91.1. Im using mpl 0.90.1 from the pythonmac site now. Is it better for me to wait till a pythonmac package is availabel or are the eggs on SF good to use. I would favor the SF eggs because of ease of upgrading unle

[Matplotlib-users] Nested Subplots?

2007-12-04 Thread Tom Johnson
Is it possible to have nested subplots? I would like to have 2 rowswith the top row having two columns and the bottom row having one column. For the bottom plot, I'd like to be able to choose between the following: 1) The size of the bottom plot expands to fill the entire horizontal space.

Re: [Matplotlib-users] colorbar in subplots

2007-12-04 Thread Eric Firing
Lars, I don't think you can do much about this using the interactive tool, so your options are: 1) position all axes explicitly, or 2) use colorbar kwargs to get a more pleasing arrangement. The relevant kwargs are: fraction= 0.15; fraction of original axes to use for colo

Re: [Matplotlib-users] savefig memory useage

2007-12-04 Thread Jordan Atlas
Mike, Updating to 0.91.1 fixed it. Python's memory usage was climbing in excess of 1 GB when running this script before (eventually crashing) -- now it hovers nicely around 60MB and completes with no problems. Excellent! Thanks, --Jordan Michael Droettboom wrote: > You can try running

Re: [Matplotlib-users] [OT] Confusion with mailing lists

2007-12-04 Thread Michael Droettboom
This is apparently a configuration option of mailman that has been purposefully set for the matplotlib mailing lists. I don't have strong opinions about this, but you may be interested in this thread: http://sourceforge.net/mailarchive/message.php?msg_id=903323ff0708220749r82f9650i7338e63a56d60

Re: [Matplotlib-users] savefig memory useage

2007-12-04 Thread Michael Droettboom
You can try running the garbage collector after each savefig. ("import gc" and then call "gc.collect()"). If you are using a GUI backend, you may want to try using the "raw" Agg backend instead -- there are fewer moving parts that way. There have been a number of memory leaks that have been f

Re: [Matplotlib-users] [OT] Confusion with mailing lists

2007-12-04 Thread massimo sandal
Robert Dailey ha scritto: What are the different ways one could send an email to a mailing list? On a related note, I *hate* that hitting "reply" uses the mail address of the parent poster, instead than that of the mailing list. The scipy and the gentoo mailing list (two other examples I kno

[Matplotlib-users] savefig memory useage

2007-12-04 Thread Jordan Atlas
Hi all, I've noticed that when I save my figures using savefig the memory is not immediately released. For example, in pseudocode, times = get_times() for var_id in var_list: Plotting.figure() var_values = get_values(var_id) pylab.plot(times, values) Plotting.savefig(var+'.p

[Matplotlib-users] [OT] Confusion with mailing lists

2007-12-04 Thread Robert Dailey
Hey guys, I realize this isn't the place to post this but I can't figure out a better place. I just had a really quick question. Sometimes I notice that mail I receive from this mailing list was never directly (through To: or CC:) sent to the mailing list. For example, say there's two people comm

Re: [Matplotlib-users] Matplotlib very slow

2007-12-04 Thread José Gómez-Dans
On Tuesday 04 December 2007 16:05:33 John Hunter wrote: > On Dec 4, 2007 10:00 AM, José Gómez-Dans <[EMAIL PROTECTED]> wrote: > > Interestingly enough, the embedding_in_gtk.py script works perfectly > > (takes less than a second to run), so I am not able to reproduce the > > slowness! > > Hmm, the

Re: [Matplotlib-users] Matplotlib very slow

2007-12-04 Thread John Hunter
On Dec 4, 2007 10:00 AM, José Gómez-Dans <[EMAIL PROTECTED]> wrote: > Interestingly enough, the embedding_in_gtk.py script works perfectly (takes > less than a second to run), so I am not able to reproduce the slowness! Hmm, the plot thickens. How about embedding_in_gtk2.py -- this add the toolb

Re: [Matplotlib-users] Matplotlib very slow

2007-12-04 Thread José Gómez-Dans
On Tuesday 04 December 2007 15:54:17 you wrote: > OK, it is in the gtk figure creation code. Get the matplotlib > examples directory and try running examples/embedding_in_gtk.py which > does not use pylab but instead does all the gtk stuff manually. See > if you can reproduce the error. If so, s

Re: [Matplotlib-users] Matplotlib very slow

2007-12-04 Thread John Hunter
On Dec 4, 2007 9:39 AM, José Gómez-Dans <[EMAIL PROTECTED]> wrote: > On Tuesday 04 December 2007 15:31:04 John Hunter wrote: > > What about these scripts > > > > # just make a figure > > from pylab import * > > figure() > > Takes a long time. OK, it is in the gtk figure creation code. Get the mat

Re: [Matplotlib-users] Matplotlib very slow

2007-12-04 Thread José Gómez-Dans
On Tuesday 04 December 2007 15:31:04 John Hunter wrote: > What about these scripts > > # just make a figure > from pylab import * > figure() Takes a long time. > # just make a subplot > from pylab import * > subplot(111) Takes a long time. > I'm trying to narrow down where the problem is occurr

Re: [Matplotlib-users] Matplotlib very slow

2007-12-04 Thread John Hunter
On Dec 4, 2007 9:19 AM, José Gómez-Dans <[EMAIL PROTECTED]> wrote: > On Tuesday 04 December 2007 15:13:21 you wrote: > > OK, the delay comes before draw which is an important piece of > > information. What happens if you run these two scripts. Do you get > > the delay? > > > > # script 1 (no plot

Re: [Matplotlib-users] Matplotlib very slow

2007-12-04 Thread José Gómez-Dans
On Tuesday 04 December 2007 15:13:21 you wrote: > OK, the delay comes before draw which is an important piece of > information. What happens if you run these two scripts. Do you get > the delay? > > # script 1 (no plot) > from pylab import * No delay. Debug output stops at line "backend GTKAgg

Re: [Matplotlib-users] Matplotlib very slow

2007-12-04 Thread José Gómez-Dans
On Tuesday 04 December 2007 14:27:21 you wrote: > On Dec 4, 2007 8:23 AM, José Gómez-Dans <[EMAIL PROTECTED]> wrote: > > PS and Agg work fast enough, and produce meaningful PS and PNG output > > files (as well as popping up a window with the plot) > > Wait a minute, if you are getting a plot window

Re: [Matplotlib-users] pls unsubscribe me

2007-12-04 Thread Adam Mercer
On 04/12/2007, pranal shah <[EMAIL PROTECTED]> wrote: > matplot lib users... > pls unsubscribe me Visit the list page thats append to every mail to this list. > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Re: [Matplotlib-users] Matplotlib very slow

2007-12-04 Thread John Hunter
On Dec 4, 2007 8:23 AM, José Gómez-Dans <[EMAIL PROTECTED]> wrote: > PS and Agg work fast enough, and produce meaningful PS and PNG output files > (as well as popping up a window with the plot) Wait a minute, if you are getting a plot window when you pass -dPS or -dAgg, something very odd is happ

Re: [Matplotlib-users] Matplotlib very slow

2007-12-04 Thread John Hunter
On Dec 4, 2007 8:23 AM, José Gómez-Dans <[EMAIL PROTECTED]> wrote: > PS and Agg work fast enough, and produce meaningful PS and PNG output files > (as well as popping up a window with the plot) Wait a minute, if you are getting a plot window when you pass -dPS or -dAgg, something very odd is happ

Re: [Matplotlib-users] Matplotlib very slow

2007-12-04 Thread José Gómez-Dans
John, On Tuesday 04 December 2007 14:07:36 you wrote: > Two more tests. WIll you set the debug level to > --verbose-debug-annoying and add a savefig command to your script, eg > savefig('myfig') with no extension (the backend will provide a default > extension with the -d flags below). Try runni

[Matplotlib-users] pls unsubscribe me

2007-12-04 Thread pranal shah
matplot lib users... pls unsubscribe me Pranal - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT fu

Re: [Matplotlib-users] Problems with binary install of matplotlib-0.9.1 python2.4 on windows

2007-12-04 Thread Charlie Moad
I have posted fresh win32 eggs and exe's on SF. I explicitly removed the inclusion of msvcp from distutils in numpy. Please give them a try and let me know if you have any more problems. Note: I just posted the files so it might take a while for them to propagate. - Charlie On Dec 3, 2007 9:47

Re: [Matplotlib-users] wxAgg

2007-12-04 Thread John Hunter
On Dec 4, 2007 3:30 AM, Lars Friedrich <[EMAIL PROTECTED]> wrote: > Hello, > > in my matplotlibrc, I use 'backend : WXAgg'. This works fine, since I > use a wxPython shell as an interactive shell with pylab. However, > 'WXAgg' is not in the list of possible backends given in matplotlibrc. > Is it s

Re: [Matplotlib-users] Matplotlib very slow

2007-12-04 Thread John Hunter
On Dec 4, 2007 4:50 AM, José Gómez-Dans <[EMAIL PROTECTED]> wrote: > Thanks for your reply. I think it might well be a fonts problem. Here's the > test script, plus a comment where the big delay happens: > % cat test.py > from pylab import * > plot([1,2,3]) > show() Two more tests. WIll you set

Re: [Matplotlib-users] Matplotlib very slow

2007-12-04 Thread José Gómez-Dans
John, On Tuesday 04 December 2007 03:25:15 John Hunter wrote: > On Dec 3, 2007 9:08 AM, José Gómez-Dans <[EMAIL PROTECTED]> wrote: > > I have compiled v.0.90.1 on RHEL 5. By default, the GTKAgg backend is > > being used (TkAgg cannot be set, as TkInter is not installed on the > > system, I think.

[Matplotlib-users] wxAgg

2007-12-04 Thread Lars Friedrich
Hello, in my matplotlibrc, I use 'backend : WXAgg'. This works fine, since I use a wxPython shell as an interactive shell with pylab. However, 'WXAgg' is not in the list of possible backends given in matplotlibrc. Is it save (also in the future) to use WXAgg, or should I try to switch to one o

[Matplotlib-users] colorbar in subplots

2007-12-04 Thread Lars Friedrich
Hello, I would like to have multiple image plots in a figure. Each plot should have its own colorbar. I tried the following: ** a = N.array(((1,2,3), (4,5,6))) P.figure(0) P.subplot(1,2,1) P.imshow(a) P.colorbar() P.subplot(1,2,2) P.imshow(a) P.colorbar()

[Matplotlib-users] Date formatting and axes confusion

2007-12-04 Thread C M
Using latest matplotlib (0.91.1) and have two about date formatting. The following two questions are put here in attempt to get a plot of a month with days 1-31 neatly fit onto the x axis. 1. Using DateFormatter class to format dates and am confused as to how to set the axis properties like font

Re: [Matplotlib-users] How to change coordinate system origin

2007-12-04 Thread Jaonary Rabarisoa
In fact, that's what I wanted to do : put the origine of my axis on le upper left corner of my axis with the values of y increase from top to bottom. And the tip you gave (set_ylim) do it kindly. Thank you again for your help. Jaonary On Dec 4, 2007 4:22 AM, John Hunter <[EMAIL PROTECTED]> wrote