Re: [Matplotlib-users] Improved dashing for black and white plots?

2006-07-12 Thread Fernando Perez
On 7/11/06, John Hunter [EMAIL PROTECTED] wrote: You don't need any defense -- it's no secret that mpl is under-documented. If you know how to look, the information is usually there, but the trick is knowing how to look In [3]: l, = plot([1,2,3]) In [4]: setp(l) Ah, thanks for that

[Matplotlib-users] 3 questions about tick labels for large values

2006-07-12 Thread PGM
Folks, I need your wisdom about ticks labels on ordinates for large numbers (1e4). The default behavior I have (0.87.4) is to display tick labels as %.1f, and write a string x1e+... above the top left corner of the current axes. - When using yaxis.tick_right(), the x1e... string stays above the

Re: [Matplotlib-users] ANN: matplotlib-0.87.4 (bugfix release for enthon)

2006-07-12 Thread Stefan van der Walt
On Tue, Jul 11, 2006 at 10:53:59PM -0400, Charlie Moad wrote: 2006-06-22 Added support for numerix 2-D arrays as alternatives to a sequence of (x,y) tuples for specifying paths in collections, quiver, contour, pcolor, transforms. Fixed contour bug involving

Re: [Matplotlib-users] ANN: matplotlib-0.87.4 (bugfix release for enthon)

2006-07-12 Thread Charlie Moad
The modules have been imported into the matplotlib repository, and they are semi-functional. They still need a lot of work though. There is a new example, simple3d_oo.py. - Charlie On 7/11/06, imcs ee [EMAIL PROTECTED] wrote: what about the mplot3d.

Re: [Matplotlib-users] ANN: matplotlib-0.87.4 (bugfix release for enthon)

2006-07-12 Thread Alan G Isaac
On Wed, 12 Jul 2006, Stefan van der Walt apparently wrote: It would be useful to have plot accept a 2-D array as well. Would patches for this be considered, or is there some reason why this can't work? At the moment, doing P.plot(z) where z is Nx2 If 2-D is allowed, I hope N×K is

Re: [Matplotlib-users] 3 questions about tick labels for large values

2006-07-12 Thread Darren Dale
Hello, um..., P., On Wednesday 12 July 2006 03:43, PGM wrote: Folks, I need your wisdom about ticks labels on ordinates for large numbers (1e4). The default behavior I have (0.87.4) is to display tick labels as %.1f, and write a string x1e+... above the top left corner of the current axes.

Re: [Matplotlib-users] Delete a plot line in interactive mode?

2006-07-12 Thread John Hunter
Michael == Michael [EMAIL PROTECTED] writes: Michael Hi, I'm new to matplotlib and am very impressed! Thanks! Michael I have a beginner type question: Michael In interactive mode (using the GtkAgg backend) I'll plot Michael multiple lines on a single subplot. The output got

[Matplotlib-users] IndexFormatter missing

2006-07-12 Thread David Grant
Anyone know what happened to matplotlib.ticker.IndexFormatter? Is there are replacement for it?-- David Grant - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with

Re: [Matplotlib-users] IndexFormatter missing

2006-07-12 Thread John Hunter
David == David Grant [EMAIL PROTECTED] writes: David Anyone know what happened to David matplotlib.ticker.IndexFormatter? Is there are replacement David for it? I don't know -- I don't see anything in the changelog or in the svn log. What did it do, and what version of mpl had it?

Re: [Matplotlib-users] ANN: matplotlib-0.87.4 (bugfix release for enthon)

2006-07-12 Thread Eric Firing
Alan G Isaac wrote: On Wed, 12 Jul 2006, Stefan van der Walt apparently wrote: It would be useful to have plot accept a 2-D array as well. Would patches for this be considered, or is there some reason why this can't work? At the moment, doing P.plot(z) where z is Nx2 If 2-D is

Re: [Matplotlib-users] ANN: matplotlib-0.87.4 (bugfix release for enthon)

2006-07-12 Thread Alan G Isaac
On Wed, 12 Jul 2006, Eric Firing apparently wrote: In the single-argument NxK case, I think matlab plots subsequent columns against the first column. Is this what you would like? Yes. Cheers, Alan Isaac - Using

Re: [Matplotlib-users] IndexFormatter missing

2006-07-12 Thread David Grant
On 7/12/06, John Hunter [EMAIL PROTECTED] wrote: David == David Grant [EMAIL PROTECTED] writes:David Anyone know what happened toDavid matplotlib.ticker.IndexFormatter ? Is there are replacementDavid for it?I don't know -- I don't see anything in the changelog or in the svnlog.What did it do, and

Re: [Matplotlib-users] IndexFormatter missing

2006-07-12 Thread John Hunter
David == David Grant [EMAIL PROTECTED] writes: David edges=[54, 76, 80, 100] stats=[5.423, 23.226, 4.1, 6.93] xticks(edges) perhaps? Or maybe I still don't understand. A complete script might help... JDH - Using

Re: [Matplotlib-users] IndexFormatter missing

2006-07-12 Thread John Hunter
John == John Hunter [EMAIL PROTECTED] writes: David == David Grant [EMAIL PROTECTED] writes: David edges=[54, 76, 80, 100] stats=[5.423, 23.226, 4.1, 6.93] John xticks(edges) Sorry, what I meant was something like xticks(range(len(edges)), ['%d'%edge for edge in edges]) This

[Matplotlib-users] Using pylab interface with Agg backend?

2006-07-12 Thread Gregory Piñero
Hi guys, Is this possible? Specifically I'm trying implement something close to this example: http://matplotlib.sourceforge.net/examples/webapp_demo.py But would like to be able to utilize code found in samples like this: http://matplotlib.sourceforge.net/screenshots/pie_demo.py Much thanks!

Re: [Matplotlib-users] Using pylab interface with Agg backend?

2006-07-12 Thread John Hunter
Gregory == Gregory Piñero [EMAIL PROTECTED] writes: Gregory Hi guys, Is this possible? Specifically I'm trying Gregory implement something close to this example: Gregory http://matplotlib.sourceforge.net/examples/webapp_demo.py Gregory But would like to be able to utilize code

Re: [Matplotlib-users] Using pylab interface with Agg backend?

2006-07-12 Thread Gregory Piñero
So my only remaining point of confusion is why wasn't the pylab interface used in the demo here: Gregory http://matplotlib.sourceforge.net/examples/webapp_demo.py Is it just a style choice? - Using Tomcat but need to

Re: [Matplotlib-users] Using pylab interface with Agg backend?

2006-07-12 Thread John Hunter
Gregory == Gregory Piñero [EMAIL PROTECTED] writes: Gregory So my only remaining point of confusion is why wasn't the Gregory pylab interface used in the demo here: Gregory http://matplotlib.sourceforge.net/examples/webapp_demo.py Gregory Is it just a style choice? pylab

Re: [Matplotlib-users] IndexFormatter missing

2006-07-12 Thread David Grant
On 7/12/06, John Hunter [EMAIL PROTECTED] wrote: John == John Hunter [EMAIL PROTECTED] writes: David == David Grant [EMAIL PROTECTED] writes:David edges=[54, 76, 80, 100] stats=[5.423, 23.226, 4.1, 6.93]John xticks(edges)Sorry, what I meant was something likexticks(range(len(edges)), ['%d'%edge

Re: [Matplotlib-users] Using pylab interface with Agg backend?

2006-07-12 Thread Gregory Piñero
On 7/12/06, John Hunter [EMAIL PROTECTED] wrote: In a production app like a web application server generating graphics, often times you don't want any magic going on behind the hood, and pylab's stateful management of figures, the current figure, and the current axes grates on some people who

Re: [Matplotlib-users] Using pylab interface with Agg backend?

2006-07-12 Thread John Hunter
Gregory == Gregory Piñero [EMAIL PROTECTED] writes: Gregory If correct here, I guess I locate the API in the user Gregory guide? Is there anything else I should be using as a Gregory reference? http://matplotlib.sourceforge.net/faq.html#OO

[Matplotlib-users] 2D Intensity Plots of Titan

2006-07-12 Thread Jeff Sadino
I am trying to map the surface of Saturn's largest moon, Titan for a summer research project. As a rough draft, I would like to plot the temperature (colored red) at the longitude(x) and latitude(y) coordinates. My data file is tab delimited in three columns (x,y,T). I am also missing some

[Matplotlib-users] embedded python and matplotlib

2006-07-12 Thread Lane Brooks
I am a newbie to python, numpy, and matplotlib, and I like what I have seen so far. I have been wishing for a long time there was an open alternative to matlab, and when I heard about numpy and matplotlib, I tried them out immediately. Anyway, I am running python embedded in a C++ WX app. I

Re: [Matplotlib-users] passing 1D or 2D arrays to contour, pcolor, image, plot

2006-07-12 Thread Mark Bakker
I am following up on the discussion of passing a single 2D array to plot.Wouldn't it make more sense that, in Python array style, if you give it a single N x K argument you plot rows against the first row? On the same token, it would be really nice if contour, pcolor and imagetake as an x and y

Re: [Matplotlib-users] passing 1D or 2D arrays to contour, pcolor, image, plot

2006-07-12 Thread Darren Dale
On Wednesday 12 July 2006 16:16, Mark Bakker wrote: I am following up on the discussion of passing a single 2D array to plot. Wouldn't it make more sense that, in Python array style, if you give it a single N x K argument you plot rows against the first row? That's not the behavior I would

Re: [Matplotlib-users] 3 questions about tick labels for large values

2006-07-12 Thread Darren Dale
On Wednesday 12 July 2006 09:49, Darren Dale wrote: Hello, um..., P., On Wednesday 12 July 2006 03:43, PGM wrote: Folks, I need your wisdom about ticks labels on ordinates for large numbers (1e4). The default behavior I have (0.87.4) is to display tick labels as %.1f, and write a string

Re: [Matplotlib-users] passing 1D or 2D arrays to contour, pcolor, image, plot

2006-07-12 Thread Eric Firing
Mark Bakker wrote: On the same token, it would be really nice if contour, pcolor and image take as an x and y argument not only a matrix but just a 1D row. This should be really easy and would be very useful. contour already does this, and I agree that pcolor and pcolormesh should.

Re: [Matplotlib-users] 2D Intensity Plots of Titan

2006-07-12 Thread Ted Drain
matplotlib+basemap may do it for you. I'm not sure how much of it's hard coded for the Earth though... http://www.scipy.org/Cookbook/Matplotlib/Maps At 08:49 AM 7/12/2006, Jeff Sadino wrote: I am trying to map the surface of Saturn's largest moon, Titan for a summer research project. As a

[Matplotlib-users] plot command: more flexible argument handling

2006-07-12 Thread Eric Firing
Darren Dale wrote: On Wednesday 12 July 2006 16:16, Mark Bakker wrote: I am following up on the discussion of passing a single 2D array to plot. Wouldn't it make more sense that, in Python array style, if you give it a single N x K argument you plot rows against the first row? That's not

Re: [Matplotlib-users] embedded python and matplotlib

2006-07-12 Thread John Pye
Hi Lane, I don't have any answers for you here, but I do wonder if you might gains some insight on this by looking at the way IPython handles its '-pylab' and '-gthread' etc flags? Cheers JP Lane Brooks wrote: So my question is: what is the correct way to setup python and/or matplotlib when

Re: [Matplotlib-users] embedded python and matplotlib

2006-07-12 Thread Lane Brooks
I found that using any of the non-GTK backends--like QTAgg or WXAgg--caused show() to block and at stopped the thread issues. I am not sure the implications of this, but it works for now. So I am content at least for the moment. Thanks, Lane John Pye wrote: Hi Lane, I don't have any

[Matplotlib-users] Legend: Space between text and upper border

2006-07-12 Thread Till Wagner
Hello, I'm having a problem with the legend in matplotlib. Sometimes the upper border of the legend goes throug the first line of text in the legend. Is there any chance to control the space between the text and the upper border to avoid this? -- Till Wagner

[Matplotlib-users] Getting error TypeError: unsupported operand type(s) for /: 'BinOp' and 'BinOp'

2006-07-12 Thread Vineet Jain
Matplotlib version: '0.87.2' I'm getting the following error: TypeError: unsupported operand type(s) for /: 'BinOp' and 'BinOp' On the following line in finance.py sy = (ax.bbox.ur().y() - ax.bbox.ll().y()) / (ax.viewLim.ur().y() - ax.viewLim.ll().y()) Is this a know issue? Am I doing