Re: [Matplotlib-users] Using the same color range for multiple plots

2009-03-18 Thread Eric Firing
cneff wrote: > Hi guys, > > I've tried to google this and look through the examples but its not quite > working for me. Say I have two sets of data I want to make contour plots out > of > > from pylab import * > > x=arange(-3.0,3.0,.025) > > y=arange(-2.0,2.0,.025) > > X,Y = meshgrid(x,y) > >

[Matplotlib-users] Using the same color range for multiple plots

2009-03-18 Thread cneff
Hi guys, I've tried to google this and look through the examples but its not quite working for me. Say I have two sets of data I want to make contour plots out of from pylab import * x=arange(-3.0,3.0,.025) y=arange(-2.0,2.0,.025) X,Y = meshgrid(x,y) Z1 = mlab.bivariate_normal(X, Y, 1.0, 1.0

[Matplotlib-users] How to turn off all clipping?

2009-03-18 Thread Hatch, Sara J
Matplotlib Folks, How do I turn off all clipping when making a plot? It seems like everything has a set_clip_on argument, but I couldn't figure out how to set all of these to False without explicitly doing so in every plot call. I would assume that there is a way to do this using an rcParam or

Re: [Matplotlib-users] draw to memory

2009-03-18 Thread Christopher Barker
crwe crwe wrote: > Looking at the implementation, it's really simple and i will do > without matplotlib altogether and roll my own. It sounds like you have a solution, but if you need to test a LOT of points, it can be efficient to rasterize, and then get a lightning fast check. It that case,

Re: [Matplotlib-users] draw to memory

2009-03-18 Thread crwe crwe
> hi, did you find this? > http://matplotlib.sourceforge.net/faq/howto_faq.html?highlight=codex%20nxutils#test-whether-a-point-is-inside-a-polygon I used the search function but no, i didn't find that link :) Shame on me and thank you Brent. Looking at the implementation, it's really simple and

Re: [Matplotlib-users] draw to memory

2009-03-18 Thread Brent Pedersen
On Wed, Mar 18, 2009 at 2:48 PM, crwe crwe wrote: > Hi all, > > i need to draw a polygon (non-convex) into memory, so that i can query which > pixels are inside the polygon and which not. I came across matplotlib which > has some Polygon class in it so i presume i could use this (although so far

[Matplotlib-users] draw to memory

2009-03-18 Thread crwe crwe
Hi all, i need to draw a polygon (non-convex) into memory, so that i can query which pixels are inside the polygon and which not. I came across matplotlib which has some Polygon class in it so i presume i could use this (although so far, i didn't understand the terminology behind the library an

[Matplotlib-users] More funky font baselines

2009-03-18 Thread Ryan May
Mike, I've found another case of the funk baseline: import matplotlib.pyplot as plt plt.title('$Z_{DR}$ (from ts)') plt.show() I've attached an image of what I see. Here's my matplotlibrc: backend : GtkAgg mathtext.fontset : stixsans mathtext.default : regular font.size : 10.0 sa

Re: [Matplotlib-users] quick numpy question

2009-03-18 Thread Pablo Romero
Thank you, and I apologize if the question wasnt appropriate for this list. P.Romero > To: matplotlib-users@lists.sourceforge.net > From: j...@iki.fi > Date: Wed, 18 Mar 2009 07:44:33 +0200 > Subject: Re: [Matplotlib-users] quick numpy question > > Pablo R