Re: [Matplotlib-users] Extraneous line drawn using pyplot

2009-10-23 Thread Jeremy Conlin
On Fri, Oct 23, 2009 at 4:16 PM, Jae-Joon Lee wrote: > Your data repeat itself twice. > Please check your data and report back if you still see the problem. > Regards, Of course it does . Sorry for bothering the list with my stupidity. Jeremy ---

Re: [Matplotlib-users] Extraneous line drawn using pyplot

2009-10-23 Thread Jae-Joon Lee
Your data repeat itself twice. Please check your data and report back if you still see the problem. Regards, -JJ On Fri, Oct 23, 2009 at 3:58 PM, Jeremy Conlin wrote: > Hello list.  I am having trouble with an extraneous line drawn from my > last data point back to the first data point.  I I d

Re: [Matplotlib-users] How to rotate label on a twin axes

2009-10-23 Thread Gökhan Sever
Thanks JJ, I wonder when will I learn to fix my own rent :) Glad to have you here always responding with a quick solution. On Fri, Oct 23, 2009 at 4:46 PM, Jae-Joon Lee wrote: > The below line is supposed to work but it does not, which is a bug. > > pary.axis["right"].label.set_rotation(270)

Re: [Matplotlib-users] zap symbols

2009-10-23 Thread Jae-Joon Lee
If that symbol is included in any of the font (I don't know of any), you can simply use them. Or, you need to create your own path. There are a few ways to do it, and I guess using scatter is one of the easiest. zap0 = [[-1.,0.], [-0.5, 0.5], [0.,0.], [0.5,-0.5],[1.,0.]] zap = zap0 + zap0[-

Re: [Matplotlib-users] How to rotate label on a twin axes

2009-10-23 Thread Jae-Joon Lee
The below line is supposed to work but it does not, which is a bug. pary.axis["right"].label.set_rotation(270) Meanwhile, use may use something like below, pary.axis["right"].get_helper()._label_angles["right"]=270 Regards, -JJ On Fri, Oct 23, 2009 at 2:13 PM, Gökhan Sever wrote: > Hel

[Matplotlib-users] Extraneous line drawn using pyplot

2009-10-23 Thread Jeremy Conlin
Hello list. I am having trouble with an extraneous line drawn from my last data point back to the first data point. I I don't quite know why this is happening and was hoping someone could tell me what was wrong. I have attached an example; the commands I used are copied below. Thanks, Jeremy

Re: [Matplotlib-users] Memory leak in pcolor?

2009-10-23 Thread Eric Firing
Teemu Ikonen wrote: > Hi all, > > Typing this (on ipython prompt with the relevant libraries imported) > > x = linspace(0,1.0,500) > y = linspace(0,1.0,500) > xg,yg = meshgrid(x,y) > c = rand(len(x), len(y)) > pcolor(xg,yg,c) > > Makes the ipython process to grow to have about 400 Mb of resident

[Matplotlib-users] How to rotate label on a twin axes

2009-10-23 Thread Gökhan Sever
Hello, One more figure and one more question. http://img263.imageshack.us/img263/6454/labelrotation.png I want to rotate the 2nd y-axis label "Air Temperature" upside down in other words rotating 180 degree while A staying up. Unfortunately set_rotation method is not available to a SubplotHost in

[Matplotlib-users] Memory leak in pcolor?

2009-10-23 Thread Teemu Ikonen
Hi all, Typing this (on ipython prompt with the relevant libraries imported) x = linspace(0,1.0,500) y = linspace(0,1.0,500) xg,yg = meshgrid(x,y) c = rand(len(x), len(y)) pcolor(xg,yg,c) Makes the ipython process to grow to have about 400 Mb of resident memory and it takes ages for the plot to

Re: [Matplotlib-users] Making mathtex output look nicer

2009-10-23 Thread Gökhan Sever
Thanks Mike, that did the trick. I was giving a space before units to make them look equal. Yours is much neater. Has this bug submitted on SF. I can go ahead a file one if not. On Fri, Oct 23, 2009 at 9:57 AM, Michael Droettboom wrote: > It's a bug without an easy solution. Realistically, w

Re: [Matplotlib-users] Py2.5.4 on Win7

2009-10-23 Thread Werner F. Bruhin
Hi Stan, Stan West wrote: From: Werner F. Bruhin [mailto:werner.bru...@free.fr] Sent: Friday, October 23, 2009 07:31 I am just installing Windows 7 Pro and I am running into a problem with matplotlib. When running e.g. barchart_demo.py I get an error that it can not find msvcp71.d

Re: [Matplotlib-users] fill_between, legends, and "label" parameter

2009-10-23 Thread Jae-Joon Lee
I think you misunderstood what I meant by proxy artist (I'm not sure if this is a right choice of the word, as a matter of fact). Again, PolyCollection instance that is returned by fill_between is not supported by legend. Therefore, you have to use other kind of artist (which I call proxy artist)

Re: [Matplotlib-users] xalign rec2gtk columns

2009-10-23 Thread Andre Smit
Figured it out: import matplotlib.mlab as mlab import mpl_toolkits.gtktools as gtktools formatd = dict( x = mlab.FormatFloat(2), y = mlab.FormatFloat(2) ) r=mlab.csv2rec('file.csv',names=('X','Y')) v=gtktools.rec2gtk(r,formatd=formatd) for c in v.treeview.get_column

Re: [Matplotlib-users] Py2.5.4 on Win7

2009-10-23 Thread Stan West
> From: Werner F. Bruhin [mailto:werner.bru...@free.fr] > Sent: Friday, October 23, 2009 07:31 > > I am just installing Windows 7 Pro and I am running into a > problem with matplotlib. > > When running e.g. barchart_demo.py I get an error that it can > not find msvcp71.dll (the dll is in C:\Py

Re: [Matplotlib-users] Making mathtex output look nicer

2009-10-23 Thread Michael Droettboom
It's a bug without an easy solution. Realistically, we probably need to make two passes with the mathtext parser to determine spacing. A workaround is to use the \hspace command: r"[#/$cm^3\hspace{-0.3}$]" Mike On 10/23/2009 09:44 AM, Gökhan Sever wrote: Hello, Not that I like asking the

[Matplotlib-users] Making mathtex output look nicer

2009-10-23 Thread Gökhan Sever
Hello, Not that I like asking the same question again and again, but I just couldn't find a way to fix one annoyance on my figures when I use mathtex formatted labels. Here is one example figure: http://img14.imageshack.us/img14/4443/mathtex.png # Set the label host.set_ylabel(r"DMT CCN Concentra

[Matplotlib-users] Py2.5.4 on Win7

2009-10-23 Thread Werner F. Bruhin
I am just installing Windows 7 Pro and I am running into a problem with matplotlib. When running e.g. barchart_demo.py I get an error that it can not find msvcp71.dll (the dll is in C:\Python25) and I see the following exception. Traceback (most recent call last): File "barchart_demo.py", lin