Re: [Matplotlib-users] Basemap/ orthographic projection plot doesn't respect globe boundary

2010-04-05 Thread Will Hewson
Hey Jeff, It's somewhere between the two - the original satellite swath is converted to a regular 0.5 degree grid by truncating, binning, and averaging each point's lons and lats over the top of a 720 x 360 np.zeros array. the plotting still works fine for non ortho/ hemispherical projections,

Re: [Matplotlib-users] Basemap/ orthographic projection plot doesn't respect globe boundary

2010-04-05 Thread Jeff Whitaker
On 4/5/10 4:16 AM, Will Hewson wrote: Hey Jeff, It's somewhere between the two - the original satellite swath is converted to a regular 0.5 degree grid by truncating, binning, and averaging each point's lons and lats over the top of a 720 x 360 np.zeros array. the plotting still works fine

Re: [Matplotlib-users] Basemap/ orthographic projection plot doesn't respect globe boundary

2010-04-05 Thread Will Hewson
I should perhaps of explained my code (included in top post) a little better, the values in my attached file aren't on a regular grid to start with, I do a little bit of juggling as follows to get them into a regular grid: I'm firstly setting up my 2D grid of 0.5 degree lat lons, followed by

Re: [Matplotlib-users] speed up imports?

2010-04-05 Thread Michael Droettboom
All of those calls to open are being generated from the pytz import -- which is why pytz seems like the likely candidate. Is it possible you have pytz installed as a compressed egg, or on a remote disk, or something that may be causing a file reading penalty? As Eric said, make sure you time

Re: [Matplotlib-users] Getting coordinates of the zoom rectangle

2010-04-05 Thread Gökhan Sever
On Mon, Apr 5, 2010 at 6:39 AM, Mauro Cavalcanti mauro...@gmail.com wrote: Dear ALL, Good morning... Here is a question that may already have been asked (and answered), but not to my knowledge. Matplotlib's figure windows come with that handy navigation bar, which includes a Pan/Zoom button

Re: [Matplotlib-users] Tick line linewidth and linestyle don't work

2010-04-05 Thread Jae-Joon Lee
On Sun, Apr 4, 2010 at 11:55 AM, Thomas Robitaille thomas.robitai...@gmail.com wrote: It looks as though the set_linewidth and set_linestyle commands are silently ignored. Is this normal? I have submitted a bug report here: linewidth and linestyle are (or looks) ignored because ticklines are

Re: [Matplotlib-users] Basemap/ orthographic projection plot doesn't respect globe boundary

2010-04-05 Thread Jeff Whitaker
On 4/5/10 7:25 AM, Will Hewson wrote: I should perhaps of explained my code (included in top post) a little better, the values in my attached file aren't on a regular grid to start with, I do a little bit of juggling as follows to get them into a regular grid: I'm firstly setting up my 2D grid

Re: [Matplotlib-users] Basemap/ orthographic projection plot doesn't respect globe boundary

2010-04-05 Thread Will Hewson
Jeff, this is great, works fine - many thanks for all your help over the last few days, it really is appreciated. I'm trying to build the case within my office for switching over to Basemap from IDL, ironing out niggles like this is really useful in this respect. All the best, Will. Jeff

Re: [Matplotlib-users] Changing the font

2010-04-05 Thread Alex S
I think I'm using MPL .99.1 (is there a command to check?) on Windows XP. Thanks for the debug tip, I don't think posting the whole thing is necessary because this line seems to be the problem: findfont: Could not match

Re: [Matplotlib-users] EPS files with LaTeX are invalid

2010-04-05 Thread Jae-Joon Lee
On Fri, Apr 2, 2010 at 11:20 AM, Michael Droettboom md...@stsci.edu wrote: It seems the relevant change is in r8102: fix some issues in the bbox after the postscript distiller is run.  This change removed a commented out call to ps2eps.  I'm a bit out of my depth here as to why that change was

Re: [Matplotlib-users] Changing the font

2010-04-05 Thread Michael Droettboom
It would still be helpful to see the whole listing (send it to me offlist) because that will indicate where fonts are being looked for, and hopefully *why* this is failing. It should search for fonts in the standard Windows location (usually C:\Windows\Fonts). Have you tried setting

Re: [Matplotlib-users] Changing the font

2010-04-05 Thread Alex S
Ah ok, I've sent it on to you. I've just tried setting font.family to New Century Schoolbook directly but it generates something similar. I'm starting to think part of the problem is that I've set the home directory to U: somehow, U: being a shared drive which doesn't have a font directory...

Re: [Matplotlib-users] Changing the font

2010-04-05 Thread Michael Droettboom
For the benefit of future users Googling this problem -- After an off-list discussion, we realized there were a couple of fonts on Alex' system with the names Century Schoolbook and New Century Schoolbook LT Std. Using one of those names instead resolved the problem. Mike Alex S wrote: Ah

Re: [Matplotlib-users] Changing the font

2010-04-05 Thread Alex S
Yup, thanks for the help everyone Michael Droettboom-3 wrote: For the benefit of future users Googling this problem -- After an off-list discussion, we realized there were a couple of fonts on Alex' system with the names Century Schoolbook and New Century Schoolbook LT Std. Using one

Re: [Matplotlib-users] speed up imports?

2010-04-05 Thread Eric Firing
Michael Droettboom wrote: All of those calls to open are being generated from the pytz import -- which is why pytz seems like the likely candidate. Is it possible you have pytz installed as a compressed egg, or on a remote disk, or something that may be causing a file reading penalty?

Re: [Matplotlib-users] How to overlay an image on a multi plot?

2010-04-05 Thread Josh Hemann
Alan, Thanks much for that link. I started playing with this code and after some hacking I might get what I need. If I cobble this together successfully I'll post the results and the code. Josh - Josh Hemann Statistical Advisor http://www.vni.com/ Visual Numerics jhemann at vni dizzot

Re: [Matplotlib-users] Getting coordinates of the zoom rectangle

2010-04-05 Thread Gökhan Sever
On Mon, Apr 5, 2010 at 3:17 PM, Mauro Cavalcanti mauro...@gmail.com wrote: Dear Gökhan, Thanks for your reply, but unfortunately it was not entirely helpful. The rectangle_selector.py exemple indeed seems to do what I want, by means of a callback function, however in the example program

Re: [Matplotlib-users] How to overlay an image on a multi plot? (Edit: how to plot sparklines on an existing plot)

2010-04-05 Thread Josh Hemann
AlanIsaac wrote: Nice. You might want to see http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR if you have not already. Alan Isaac Thanks again Alan. I know I am abusing the term sparkline because I am not embedding the visualization within text, but I am not sure