[Matplotlib-users] .show() documentation?

2008-10-14 Thread Nick Vaidyanathan
Does not exist here: http://matplotlib.sourceforge.net/doc/html/api/pyplot_api.html Which is curious, because it's plainly shown (PUNZ!) here: http://matplotlib.sourceforge.net/doc/html/users/pyplot_tutorial.html Now here's t3h sex: given the documentation, I kind of expect this to work: ---Pyth

Re: [Matplotlib-users] MPL on Windows x64 with Python 2.6

2008-10-14 Thread Charlie Moad
Could you please describe your build environment? I am interested in what compiler you used and what OS you are running. - Charlie On Tue, Oct 14, 2008 at 8:23 PM, Dan Shechter <[EMAIL PROTECTED]> wrote: > Hi, > I've successfully compiled NumPy for Python 2.6 on Windows x64 (amd64). > NumPy seem

[Matplotlib-users] MPL on Windows x64 with Python 2.6

2008-10-14 Thread Dan Shechter
Hi, I've successfully compiled NumPy for Python 2.6 on Windows x64 (amd64). NumPy seems so pass most of the unit tests, except for a few minor ones where it seems nose (the unit testing harness) seems to have problems with python 2.6. After compiling MPL for 2.6 on x64 (which was a LENGTHY process

[Matplotlib-users] nevermind - Re: another noob question

2008-10-14 Thread Mathew Yeates
I had a bug in my code, when I fixed it I can now see the lines. If there is a better way to do what I'm doing, and love to hear it. Mathew Yeates wrote: > Any help appreciated > > I am displaying a line on a map ala > -- > m=Basemap( ) > xpt,ypt= m([],[]) > outlines=m.plot(xp

Re: [Matplotlib-users] how to tell if a point is inside a polygon

2008-10-14 Thread Eric Firing
John Hunter wrote: > On Tue, Oct 14, 2008 at 2:58 PM, Eric Firing <[EMAIL PROTECTED]> wrote: >> mask = (PyArrayObject *)PyArray_SimpleNew(1,dimensions,PyArray_INT); >> >> in nxutils.cpp would become >> >> mask = (PyArrayObject *)PyArray_SimpleNew(1,dimensions, NPY_BOOL); >> >> Can anyone think of

[Matplotlib-users] another noob question

2008-10-14 Thread Mathew Yeates
Any help appreciated I am displaying a line on a map ala -- m=Basemap( ) xpt,ypt= m([],[]) outlines=m.plot(xpt,ypt,'r-') - and then in an update routine I do def update(newxpts,newypts): outlines[0].set_data(newxpst,newypts) -

Re: [Matplotlib-users] zorder seems to cause problems when embed python in latex files

2008-10-14 Thread chris
On Tue, Oct 14, 2008 at 11:21:58PM +0300, Jouni K. Sepp?nen wrote: > Jouni K. Sepp?nen <[EMAIL PROTECTED]> writes: > > > 2008-03-23 Fix a pdf backend bug which sometimes caused the outermost > > gsave to not be balanced with a grestore. - JKS > > > > Can you upgrade to 0.91.4? > > He

Re: [Matplotlib-users] zorder seems to cause problems when embed python in latex files

2008-10-14 Thread Jouni K . Seppänen
Jouni K. Seppänen <[EMAIL PROTECTED]> writes: > 2008-03-23 Fix a pdf backend bug which sometimes caused the outermost > gsave to not be balanced with a grestore. - JKS > > Can you upgrade to 0.91.4? Here's the relevant patch, in case applying it is more convenient than upgrading:

Re: [Matplotlib-users] zorder seems to cause problems when embed python in latex files

2008-10-14 Thread chris
On Tue, Oct 14, 2008 at 03:00:05PM -0400, Michael Droettboom wrote: > With the file you sent, I can see the messed up footer in xpdf, but not > in acroread. There are a number of times that I have seen xpdf not > completely support the PDF spec, and this may be one of them. I installed acroread a

Re: [Matplotlib-users] how to tell if a point is inside a polygon

2008-10-14 Thread John Hunter
On Tue, Oct 14, 2008 at 2:58 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > mask = (PyArrayObject *)PyArray_SimpleNew(1,dimensions,PyArray_INT); > > in nxutils.cpp would become > > mask = (PyArrayObject *)PyArray_SimpleNew(1,dimensions, NPY_BOOL); > > Can anyone think of anything this would break,

Re: [Matplotlib-users] zorder seems to cause problems when embed python in latex files

2008-10-14 Thread Jouni K . Seppänen
[EMAIL PROTECTED] writes: > I also attached the final PDF since you asked for it. You didn't mention your matplotlib version, but the embedded pdf file seems to come from matplotlib 0.91.2. That version had a bug where the graphics context was not always restored properly, which could very well b

Re: [Matplotlib-users] how to tell if a point is inside a polygon

2008-10-14 Thread Eric Firing
Pierre GM wrote: > Mathew, > Have you tried the solution that was suggested by Angus yesterday on the > numpy > mailing list ? > > http://projects.scipy.org/pipermail/scipy-user/2008-February/015418.html > import numpy as np import matplotlib.nxutils as nxutils polygon=np.array([

Re: [Matplotlib-users] how to tell if a point is inside a polygon

2008-10-14 Thread Mathew Yeates
Angus originally suggest matplotlib. The other proposed solutions are overkill, unless it turns out that performance is a problem Thanks Mathew Pierre GM wrote: > Mathew, > Have you tried the solution that was suggested by Angus yesterday on the > numpy > mailing list ? > > http://projects.sci

Re: [Matplotlib-users] how to tell if a point is inside a polygon

2008-10-14 Thread Mathew Yeates
Thanks! Thats exactly what I was looking for! Mathew Michael Droettboom wrote: > If you can convert your polygon to a path, you can use the > "contains_point" method: > > >>> from matplotlib import path > >>> p = path.Path([[0,0], [42, 3], [45, 23], [1, 32]]) > >>> p.contains_point([5,5]) > 1 >

Re: [Matplotlib-users] how to tell if a point is inside a polygon

2008-10-14 Thread Pierre GM
Mathew, Have you tried the solution that was suggested by Angus yesterday on the numpy mailing list ? http://projects.scipy.org/pipermail/scipy-user/2008-February/015418.html >>> import numpy as np >>> import matplotlib.nxutils as nxutils >>> polygon=np.array([(0,0),(0,1),(1,1),(1,0)]) >>> point

Re: [Matplotlib-users] how to tell if a point is inside a polygon

2008-10-14 Thread Michael Droettboom
If you can convert your polygon to a path, you can use the "contains_point" method: >>> from matplotlib import path >>> p = path.Path([[0,0], [42, 3], [45, 23], [1, 32]]) >>> p.contains_point([5,5]) 1 >>> p.contains_point([72, 3]) 0 Mike Mathew Yeates wrote: > Is there a routine in matplotl

Re: [Matplotlib-users] zorder seems to cause problems when embed python in latex files

2008-10-14 Thread Michael Droettboom
With the file you sent, I can see the messed up footer in xpdf, but not in acroread. There are a number of times that I have seen xpdf not completely support the PDF spec, and this may be one of them. Creating my own files, however, I'm not able to reproduce this here. When I compile your tes

[Matplotlib-users] how to tell if a point is inside a polygon

2008-10-14 Thread Mathew Yeates
Is there a routine in matplotlib for telling whether a point is inside a convex 4 sided polygon? Mathew - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applicat

Re: [Matplotlib-users] Does anyone have an updated version of SentinelMap?

2008-10-14 Thread Michael Lerner
On Mon, Oct 13, 2008 at 3:59 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > Michael Lerner wrote: >> >> Hi, >> >> I'm trying to plot some data where certain values are marked by a >> sentinel, as per the Cookbook example: >> >> >> http://www.scipy.org/Cookbook/Matplotlib/Plotting_Images_with_Special_

Re: [Matplotlib-users] Figures missing from matplotlib documentation?

2008-10-14 Thread John Hunter
On Tue, Oct 14, 2008 at 7:35 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > I saw this blank image problem a couple of weeks ago, and I was seeing it in > my local doc builds as well. > > It appeared then that this change broke inline plots: > > """ > r6089 | jdh2358 | 2008-09-13 10:28:09 -040

Re: [Matplotlib-users] Figures missing from matplotlib documentation?

2008-10-14 Thread Michael Droettboom
I saw this blank image problem a couple of weeks ago, and I was seeing it in my local doc builds as well. It appeared then that this change broke inline plots: """ r6089 | jdh2358 | 2008-09-13 10:28:09 -0400 (Sat, 13 Sep 2008) | 1 line replaced ipython run magic with code.InteractiveConsole.run

Re: [Matplotlib-users] zorder seems to cause problems when embed python in latex files

2008-10-14 Thread Michael Droettboom
[EMAIL PROTECTED] wrote: > LaTeX can accept embedded Python code with a python.sty file. > > This is handy to dynamically generate plots with Matplotlib for a LaTeX slide > presentation. > > I successfully embedded lots of matplotlib plot code into my slides > and then had problems with zorder. > >

Re: [Matplotlib-users] plot chops off big Latex axis labels

2008-10-14 Thread Michael Droettboom
Can you send us some input and output that exhibits this problem, and some information about your versions and platform? [EMAIL PROTECTED] wrote: > The plot PDFs that matplotlib makes by default seem to be too tiny to contain > my biggest axis labels and my poor Latex stuff is chopped in half. >

Re: [Matplotlib-users] Figures missing from matplotlib documentation?

2008-10-14 Thread John Hunter
On Mon, Oct 13, 2008 at 6:56 PM, Eric Firing <[EMAIL PROTECTED]> wrote: >> However, unfortunately there appears to be some problem with the >> generation of the figures which are supposed to be embedded within that >> documentation - they're all appearing as nothing but blank white spaces, >> both