[Matplotlib-users] scroll direction incorrectly reported by TkAgg

2010-10-20 Thread Richard Ree
In my interactive plots that connect with mouse scroll events (event.button), I just noticed that TkAgg reports the opposite - 'up' when the scroll direction is down and vice versa. GTKAgg and WxAgg report the correct value. I noticed this after installing ipython in a virtualenv and having probl

Re: [Matplotlib-users] Libertine font in Matplotlib?

2010-10-20 Thread Jeffrey Blackburne
You might be able to do this (before importing pyplot or pylab): matplotlib.rcParams['text.usetex'] = True matplotlib.rcParams['text.latex.preamble'] = '\usepackage{libertine}' and optionally (if you have xpdf or poppler installed): matplotlib.rcParams['ps.usedistiller'] = 'xpdf' Good luck, Jef

Re: [Matplotlib-users] Libertine font in Matplotlib?

2010-10-20 Thread Thøger Emil Juul Thorsen
Sorry, perhaps I should have specified; I'm using usetex, and Libertine is not among the supported fonts. In the example RC file, it said that if any font was wanted, that could be loaded with a \usepackage command, one should request it on the mailing list. On Wed, 2010-10-20 at 14:29 -0400,

[Matplotlib-users] Question about legend on histogram plot

2010-10-20 Thread Gökhan Sever
Hello, Consider these two simple lines in IPython -pylab: plt.hist(np.random.randn(1000), normed=1, histtype='step', label='test', lw=2) plt.legend() How could I change the appearance of the legend symbol in this case? It auto-uses a patch object (rectangle in this case). I would like to get a st

Re: [Matplotlib-users] Libertine font in Matplotlib?

2010-10-20 Thread Stan West
> From: Thøger Emil Juul Thorsen [mailto:thoe...@fys.ku.dk] > Sent: Monday, October 18, 2010 14:04 > > I'm using the excellent font Linux Libertine for writing my thesis, in > which I do my plotting in matplotlib. I would really love to > be ablu to > have consistent fonts in both text and graph

[Matplotlib-users] help on 3d scatter.

2010-10-20 Thread Bala subramanian
Friends, I tried to do a 3d scatter plot. The following is my code. However i dnt know how to set different colors and marker for x, y and z. Someone kindly help in doing the same. I tried to give a sequence of colors as c=['black','red','blue'] but i dnt get what i want. -- im

Re: [Matplotlib-users] weird range value in the colorbar, matplotlib

2010-10-20 Thread Eric Firing
On 10/19/2010 05:44 AM, vaishu wrote: > > Hey guys, > > I am a new user to the python& matplotlib, this might be a simple question > but I searched the internet for hours and couldn't find a solution for this. > > I am plotting precipitation data from which is in the NetCDF format. What I > find w

Re: [Matplotlib-users] sub-sub-plots, sub-sub-sub-plots, etc.

2010-10-20 Thread Kynn Jones
On Tue, Oct 19, 2010 at 1:27 PM, Friedrich Romstedt < friedrichromst...@gmail.com> wrote: > > My idea would be to add another layer. Meaning to provide a class > which *creates* Axes, and which has other instances of *this class* in > an attribute. The attrib would be scalar. Repetition is done

Re: [Matplotlib-users] Installing matplotlib from source on Snow Leopard

2010-10-20 Thread Friedrich Romstedt
2010/10/20 James Battat : > Hi, > I'm having trouble with my built-from-source installation of matplotlib on > Snow Leopard  (I also tried installing from the .dmg file, but that install > failed -- see below for details). *SIGH* *SIGH* YEAH, this keeps bugging us. Please do a search in Gmane (h

Re: [Matplotlib-users] how to make a polar plot just of a section with grid

2010-10-20 Thread Friedrich Romstedt
2010/10/20 Stefan Mauerberger : > I want to make a polar plot with grid not of the full circle but a > section (e.g. r=[5:6], phi=[-20:30]). The result should look like this: > http://homepages.physik.uni-muenchen.de/~Stefan.Mauerberger/example.png > I have tried a lot and had also looked to the ex

[Matplotlib-users] Installing matplotlib from source on Snow Leopard

2010-10-20 Thread James Battat
Hi, I'm having trouble with my built-from-source installation of matplotlib on Snow Leopard (I also tried installing from the .dmg file, but that install failed -- see below for details). I downloaded: matplotlib-1.0.0.tar.gz and then built and installed: > tar xvzf matplotlib-1.0.0.tar.gz

[Matplotlib-users] how to make a polar plot just of a section with grid

2010-10-20 Thread Stefan Mauerberger
Hello everyone, I want to make a polar plot with grid not of the full circle but a section (e.g. r=[5:6], phi=[-20:30]). The result should look like this: http://homepages.physik.uni-muenchen.de/~Stefan.Mauerberger/example.png I have tried a lot and had also looked to the examples but my results

[Matplotlib-users] weird range value in the colorbar, matplotlib

2010-10-20 Thread vaishu
Hey guys, I am a new user to the python & matplotlib, this might be a simple question but I searched the internet for hours and couldn't find a solution for this. I am plotting precipitation data from which is in the NetCDF format. What I find weird is that, the data doesn't have any negative va

Re: [Matplotlib-users] colormap from blue to transparent to red

2010-10-20 Thread Stefan Mauerberger
Ben, thanks a lot! Your way does exactly what I want. Scott, I do not understand your solution, unfortunately. I have already known the example from the gallery. But up to now, I have not dealt with masked arrays. Anyway ... Thanks a lot again. Stefan --