Re: [Matplotlib-users] Custom ticklabels on colorbar

2009-08-20 Thread Scott Sinclair
> 2009/8/20 Daniel Platz : > The setting of the new ticklabels works now. But the first label is > attached to the second tick. I tried to adapt the clim range by using > the vmin and vmax option of pcolor but it did not help. Does this help? http://matplotlib.sourceforge.net/examples/pylab_examp

Re: [Matplotlib-users] TikZ/PGF backend

2009-08-20 Thread jason-sage
Justin Findlay wrote: > I'm trying to find a way to embed matplotlib graphs in LaTeX > documents. Ideally a solution would involve converting MPL's output > to TikZ in order to get native rendering of the graphics and text. > This seems like the "Right Way" to go, unfortunately, my classes start >

Re: [Matplotlib-users] TikZ/PGF backend

2009-08-20 Thread Justin Findlay
On Thu, Aug 20, 2009 at 3:56 PM, John Hunter wrote: > What's wrong with including the ps/eps output in your latex docs, or > the pdf output for your pdflatex docs?  That's what most people do. > You can enable the "usetex" option if you want tex to render the text The difference is subtle. By hav

Re: [Matplotlib-users] TikZ/PGF backend

2009-08-20 Thread John Hunter
On Thu, Aug 20, 2009 at 4:08 PM, Justin Findlay wrote: > I'm trying to find a way to embed matplotlib graphs in LaTeX > documents.  Ideally a solution would involve converting MPL's output > to TikZ in order to get native rendering of the graphics and text. > This seems like the "Right Way" to go,

[Matplotlib-users] TikZ/PGF backend

2009-08-20 Thread Justin Findlay
I'm trying to find a way to embed matplotlib graphs in LaTeX documents. Ideally a solution would involve converting MPL's output to TikZ in order to get native rendering of the graphics and text. This seems like the "Right Way" to go, unfortunately, my classes start on Monday, and I'm neither pyth

Re: [Matplotlib-users] Custom ticklabels on colorbar

2009-08-20 Thread Daniel Platz
The setting of the new ticklabels works now. But the first label is attached to the second tick. I tried to adapt the clim range by using the vmin and vmax option of pcolor but it did not help. I also still have the problem that the changes are only performed on the last two subplots (in one lo

[Matplotlib-users] FW: pylab datapath problem using WXAgg under SPE

2009-08-20 Thread Dylan Walker
Hey everyone, I cannot seem to get pylab to display a plot using WXAgg. For some reason, the datapath that I set in my matplotlibrc and confirmed by checking rcParams['datapath'] is not being passed correctly to wx. Instead, it attempts to find the data (button images like subplots.png, etc.)

Re: [Matplotlib-users] Custom ticklabels on colorbar

2009-08-20 Thread Jouni K . Seppänen
Daniel Platz writes: > t = cb4.ax.get_xticklabels() > for j in t: > j.set_text(r'$\pi$') > j.set_fontsize(10) > j.set_family('serif') Try cb4.ax.set_xticklabels([r'$-\pi$', ...]); draw() > Another problem is that I want to adjust the fontsize of the colorbar > tickl

[Matplotlib-users] Custom ticklabels on colorbar

2009-08-20 Thread Daniel Platz
Hello, I would like to have some custom ticklabels on a colorbar. In detail, I want the four labels '-\pi', -\pi/2', '0', \pi/2', \pi'. I tried to set manually each text object obtained from cb.ax.get_xticklabels(): t = cb4.ax.get_xticklabels() for j in t: j.set_text(r'$\pi$')

Re: [Matplotlib-users] horizontal grid lines appearing when i put text on a plot

2009-08-20 Thread Ryan May
On Thu, Aug 20, 2009 at 11:00 AM, DEMOLISHOR! the Demolishor < destrooo...@gmail.com> wrote: > Hello all, > I suppose this is a newbie question, but why do I get these three > horizontal grid lines when I add text to my plot? I've tried repeating the > call to pyplot.grid() but that doesn't affe

[Matplotlib-users] horizontal grid lines appearing when i put text on a plot

2009-08-20 Thread DEMOLISHOR! the Demolishor
Hello all, I suppose this is a newbie question, but why do I get these three horizontal grid lines when I add text to my plot? I've tried repeating the call to pyplot.grid() but that doesn't affect anything... #!/usr/bin/env python from matplotlib import pyplot from scipy import randn mu, sigm

Re: [Matplotlib-users] plot multiple times in one script fails

2009-08-20 Thread M. Hecht
Hi, ok meanwhile I found out that this is a typical beginners error, sorry. Nevertheless, using ion(), and ioff() together with draw() works fine. What I didn't find out up to now was the funtion ginput(n=1, timeout=30, show_clicks=True) which prevents me from killing the window after ever

Re: [Matplotlib-users] mac os backend not building

2009-08-20 Thread John Hunter
On Thu, Aug 20, 2009 at 9:56 AM, George Nurser wrote: > Michiel, > I'm on Mac OS X 10.5. My version of Python is 2.5.2, also from python.org. > Presumably the new matplotlib does compile with 2.6.2 on 10.5? It does -- I compiled the mpl OSX binaries using python 2.6.2 (from src) from python.org on

Re: [Matplotlib-users] mac os backend not building

2009-08-20 Thread George Nurser
Michiel, I'm on Mac OS X 10.5. My version of Python is 2.5.2, also from python.org. Presumably the new matplotlib does compile with 2.6.2 on 10.5? I'm a bit reluctant to install 2.6.2 now, since we'll be moving to 10.6 ASAP here for the Exchange compatibility, and I guess I'll be want to reinstall

Re: [Matplotlib-users] bug in imshow for PDF, EPS output

2009-08-20 Thread Jouni K . Seppänen
Michael Fitzgerald writes: > Can anyone confirm this bug? I have added it to the sourceforge > tracker, ID 2832896. > https://sourceforge.net/tracker/?func=detail&aid=2832896&group_id=80706&atid=560720 I can see it but haven't been able to make time to investigate yet. -- Jouni K. Seppänen ht

Re: [Matplotlib-users] mac os backend not building

2009-08-20 Thread Jouni K . Seppänen
Michiel de Hoon writes: > Are you on Mac OS X 10.5 or are you on an earlier version? The error > message you're seeing indicates that MAC_OS_X_VERSION_10_5 is defined, > suggesting that you are on Mac OS X 10.5. But then it should be aware > of CTFontRef ... Did you change anything in your Python

Re: [Matplotlib-users] show() problem in Mac OS X 10.5.8

2009-08-20 Thread Kim, Dae-Won
I tested with TKAgg and WXAgg. I just bought macbook and I'm newbie yet. Do I need to set something special for the multiple show()s? Thanks, -Dae-Won On Thu, Aug 20, 2009 at 10:01 AM, Michiel de Hoon wrote: > Whether or not you can do multiple show()s depends on which backend you > use. For ex

Re: [Matplotlib-users] mac os backend not building

2009-08-20 Thread Michiel de Hoon
Are you on Mac OS X 10.5 or are you on an earlier version? The error message you're seeing indicates that MAC_OS_X_VERSION_10_5 is defined, suggesting that you are on Mac OS X 10.5. But then it should be aware of CTFontRef ... Did you change anything in your Python setup? --Michiel. --- On Wed

Re: [Matplotlib-users] onpick on a 2 y plot ( via twinx() ) seems to only allow picking of second axes's artists

2009-08-20 Thread othererik
John, Thanks for the information. The solution worked so, I can now do a mouse over over lines from either axes and have a nice little tooltip, etc. I found that if I change the zorder of the axis right after attempting to "pick" on the mouse event, it fails, but it's fine for my needs to just t

Re: [Matplotlib-users] show() problem in Mac OS X 10.5.8

2009-08-20 Thread Michiel de Hoon
Whether or not you can do multiple show()s depends on which backend you use. For example, the Mac OS X native backend has no problems with the multiple show()s in your example. Which backend were you using? While matplotlib does not support multiple show()s in general, there may be a simple solu

Re: [Matplotlib-users] embeding basemap in Tk

2009-08-20 Thread marc desmarais
I think I needed to create an "axes". This seems to have solved my problem. a = f.add_subplot(111) map = Basemap(projection='ortho',   lat_0=34.0,   lon_0=-117.3,   resolution='l',   area_thresh=1000,   ax=a) Marc Desmarais Long Beach,