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 no

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 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 this > function

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 Alan G Isaac
On 4/5/2010 5:08 PM, Josh Hemann wrote: > Here is the new graphic. > > http://old.nabble.com/file/p28144782/Full5%252B8%252B2_vs_Bulk1%252B2.png > 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 -

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
OK, I am in business. I read through the code that Alan linked to which helped me understand what to do, which does not involve overlaying any images. So, this thread is a dead end with respect to the original question. Here is the new graphic. http://old.nabble.com/file/p28144782/Full5%252B8%25

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 com

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] 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".

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: >

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] legend markerscale does not work

2010-04-05 Thread Jae-Joon Lee
On Sun, Apr 4, 2010 at 2:56 AM, Levi Kilcher wrote: > And what the heck are the line objects in the legend?  Are there > separate marker objects that I am missing? > Yes. l = legend() l.get_lines()[0]._legmarker.set_ms(5) The line objects in the legend handles have a _legmarker attribute which

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 font.famil

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 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 made, and

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 :family=serif:style=normal:variant=normal:weight=normal:stretch=normal:size=

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 Whit

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 o

Re: [Matplotlib-users] Issues with Affine2D transform

2010-04-05 Thread Jae-Joon Lee
On Mon, Apr 5, 2010 at 10:05 AM, Michael Droettboom wrote: >> matplotlib.use('Agg') >> import matplotlib.pyplot as mpl >> from matplotlib.transforms import Affine2D >> import numpy as np >> >> image = np.random.random((100,100)) >> >> fig = mpl.figure() >> ax = fig.add_subplot(1,1,1) >> ax.pcolor(

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 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 actually "markers". To chan

Re: [Matplotlib-users] Issues with Affine2D transform

2010-04-05 Thread Michael Droettboom
The get/set_transform on an artist (any artist really), is an internal implementation detail that transforms points from data space all the way to pixels. It's not really useful to the end user, unless you want to have very low-level control over plotting. If you want to change how data point

Re: [Matplotlib-users] Bold Latex Tick-Labels

2010-04-05 Thread Diakronik
konstellationen wrote: > > Hi, > > I am making plots for a publication using matplotlib which requires the > use of heavy fonts. I am rendering text in the graph with Latex, which has > a limited capability to make fonts more heavy. I partially solved the > problem using the \boldmath Latex co

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 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 > and a Zoom-t

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] 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 iden

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 f

[Matplotlib-users] Getting coordinates of the zoom rectangle

2010-04-05 Thread Mauro Cavalcanti
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 and a Zoom-to-rectangle button. Once a zoom rectangle is defined on a figure, is

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, an

Re: [Matplotlib-users] visualizing colormaps for complex functions

2010-04-05 Thread Guy Rutenberg
Hi Gary, Thanks for responding. It looks like the mpmath does what I'm looking for. Your code looks interesting, as it lowers the number of dependencies needed. I hope I'll find the time to really incorporate this features to something that can come as part to matplotlib. Regarding the plots I've