Re: [Matplotlib-users] [matplotlib-devel] What would you like to see in a book about Matplotlib?

2009-01-30 Thread Chris Walker
Note: Posted to matplotlib-devel and debian-science. Sandro, Firstly, good luck with the book. The sort of book I'd buy would explain how to use the combination of matplotlib/ipython/scipy/numpy to analyse data. > - what are you using matplotlib for? I want to use matplotlib/ipython

Re: [Matplotlib-users] Plot only inside a disc

2009-01-30 Thread Andy.Henshaw
> -Original Message- > From: andy.hens...@gtri.gatech.edu > [mailto:andy.hens...@gtri.gatech.edu] > Sent: Friday, January 30, 2009 11:46 AM > To: jdh2...@gmail.com > Cc: matplotlib-users@lists.sourceforge.net > Subject: Re: [Matplotlib-users] Plot only inside a disc > > > > > -Origina

Re: [Matplotlib-users] Plot only inside a disc

2009-01-30 Thread Andy.Henshaw
> -Original Message- > From: John Hunter [mailto:jdh2...@gmail.com] > Sent: Friday, January 30, 2009 11:29 AM > To: Henshaw, Andy > Cc: matplotlib-users@lists.sourceforge.net > Subject: Re: [Matplotlib-users] Plot only inside a disc > > On Fri, Jan 30, 2009 at 10:27 AM, > wrote: > > > H

Re: [Matplotlib-users] Plot only inside a disc

2009-01-30 Thread John Hunter
On Fri, Jan 30, 2009 at 10:27 AM, wrote: > Hmm ... this doesn't quite give me what I'm looking for. When I do that, I > get a semitransparent circle that is clipped to a rectangle. What I need is > a semi-transparent rectangle (with a hole cut out of the middle) that > overlays the plot. T

Re: [Matplotlib-users] Plot only inside a disc

2009-01-30 Thread John Hunter
On Fri, Jan 30, 2009 at 8:54 AM, wrote: > This is a very timely question for me. I'm needing to do something very > similar, but I need to overlay a semi-transparent rectangle with a hole cut > out of it. So, I'm making a rectangular patch, making a circular patch, > setting the circular pa

Re: [Matplotlib-users] contour coordinates

2009-01-30 Thread Eli Brosh
Hello again, I finally found the command I was looking for. It is the to_polygons(). Here is what worked : # make a LineCollection of contours col=contour(X,Y,Z,LevelsNumber).collections for i in np.arange(0,LevelsNumber,1): polygoni=col[i].get_paths()[0].to_polygons()[0] print polygoni

Re: [Matplotlib-users] Plot only inside a disc

2009-01-30 Thread Andy.Henshaw
>>[Christophe] Thanks, your example works but what I must do so to plot for >>example y=cos x >> ? I'm a very beginner. > > line, = ax.plot(x, np.cos(x)) > patch = patches.Circle((300,300), radius=100) > line.set_clip_path(patch) > >Everything in the matplotlib figure is an "Artist" (lines, im

Re: [Matplotlib-users] How to plot straight lines on polar plots

2009-01-30 Thread John Hunter
On Fri, Jan 30, 2009 at 12:28 AM, jamesf0 wrote: > > Sorry, I have done that change, and get these errors: > > > Traceback (most recent call last): > File "test7.py", line 36, in >ax=fig.add_subplot(111, polar=True, resolution=1) > File "/usr/lib/python2.5/site-packages/matplotlib/figure.py