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

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

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] 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] Plot only inside a disc

2009-01-29 Thread projetmbc
>> 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, images, >text, re

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

2009-01-29 Thread John Hunter
On Thu, Jan 29, 2009 at 1:40 PM, wrote: > 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 "

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

2009-01-29 Thread projetmbc
Title: Flashmail Thanks, your example works but what I must do so to plot for example y=cos x ? I'm a very beginner.   Christophe. Message d'origine >Date: Thu, 29 Jan 2009 09:34:11 -0600 >Sujet: Re: [Matplotlib-users] Plot only inside a disc >De: John Hunter

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

2009-01-29 Thread John Hunter
On Thu, Jan 29, 2009 at 9:19 AM, wrote: > Hello, > I would like to make a kind of magnifying glass. So I need to have a piece of > a graph and I would like it to have the form of a disc rather than of a box. > So is-it possible to only draw in a disc (I'm searching for a fast way to do > that) ?

[Matplotlib-users] Plot only inside a disc

2009-01-29 Thread projetmbc
Hello, I would like to make a kind of magnifying glass. So I need to have a piece of a graph and I would like it to have the form of a disc rather than of a box. So is-it possible to only draw in a disc (I'm searching for a fast way to do that) ? Best regards. Christophe. -