Re: [Matplotlib-users] Image plotting using the OO interface

2008-06-20 Thread Alan G Isaac
> On Fri, Jun 20, 2008 at 8:41 AM, Alan G Isaac <[EMAIL PROTECTED]> wrote: >> If anyone wants to share an example where it is useful to >> work "backwards" like that, I'm sure I would learn from >> it. On Fri, 20 Jun 2008, John Hunter wrote: > Take a look at the draggable rectangle code in the

Re: [Matplotlib-users] Image plotting using the OO interface

2008-06-20 Thread John Hunter
On Fri, Jun 20, 2008 at 8:41 AM, Alan G Isaac <[EMAIL PROTECTED]> wrote: >> On Thu, Jun 19, 2008 at 3:37 PM, Alan G Isaac <[EMAIL PROTECTED]> wrote: >>> I still do not see why a figure has a canvas as data. > > On Thu, 19 Jun 2008, John Hunter apparently wrote: >> This is just a convenience so the

Re: [Matplotlib-users] Image plotting using the OO interface

2008-06-20 Thread Alan G Isaac
> On Thu, Jun 19, 2008 at 3:37 PM, Alan G Isaac <[EMAIL PROTECTED]> wrote: >> I still do not see why a figure has a canvas as data. On Thu, 19 Jun 2008, John Hunter apparently wrote: > This is just a convenience so the child can see the parent. If I have > a function that gets a line, I can do

Re: [Matplotlib-users] Image plotting using the OO interface

2008-06-20 Thread John Hunter
On Fri, Jun 20, 2008 at 2:26 AM, David Goldsmith <[EMAIL PROTECTED]> wrote: > > That example doesn't do anything on my computer... Look again :-) It created a file called test.png in the directory in which you ran the example. As long as you include the last line in the example (the print_figur

Re: [Matplotlib-users] Image plotting using the OO interface

2008-06-20 Thread David Goldsmith
That example doesn't do anything on my computer... DG --- On Thu, 6/19/08, Scott Sinclair <[EMAIL PROTECTED]> wrote: > From: Scott Sinclair <[EMAIL PROTECTED]> > Subject: Re: [Matplotlib-users] Image plotting using the OO interface > To: Matplotlib-users@lists.source

Re: [Matplotlib-users] Image plotting using the OO interface

2008-06-19 Thread John Hunter
On Thu, Jun 19, 2008 at 3:37 PM, Alan G Isaac <[EMAIL PROTECTED]> wrote: > On Thu, 19 Jun 2008, John Hunter apparently wrote: >> This is covered somewhat in Chapter 10 of the user's guide >> http://matplotlib.sourceforge.net/users_guide_0.98.0.pdf > > Your post was helpful. > I still do not see why

Re: [Matplotlib-users] Image plotting using the OO interface

2008-06-19 Thread Alan G Isaac
On Thu, 19 Jun 2008, John Hunter apparently wrote: > This is covered somewhat in Chapter 10 of the user's guide > http://matplotlib.sourceforge.net/users_guide_0.98.0.pdf Your post was helpful. I still do not see why a figure has a canvas as data. I'll read that chapter. Thanks! Alan ---

Re: [Matplotlib-users] Image plotting using the OO interface

2008-06-19 Thread John Hunter
On Thu, Jun 19, 2008 at 8:58 AM, Alan G Isaac <[EMAIL PROTECTED]> wrote: > On Thu, 19 Jun 2008, Scott Sinclair apparently wrote: >> canvas = FigureCanvas(fig) > > What is the relationship between a figure and a canvas? The Figure is the top level matplotlib artist container that contains all the o

Re: [Matplotlib-users] Image plotting using the OO interface

2008-06-19 Thread Alan G Isaac
On Thu, 19 Jun 2008, Scott Sinclair apparently wrote: > canvas = FigureCanvas(fig) What is the relationship between a figure and a canvas? My impression is the following. You can do all your drawing on a figure. When you want to render the figure (e.g., to screen, or printing to file), and not

Re: [Matplotlib-users] Image plotting using the OO interface

2008-06-19 Thread Scott Sinclair
>>> David Goldsmith <[EMAIL PROTECTED]> 06/19/08 9:39 AM >>> Hi! I'm having trouble figuring out how to plot an array as an image with the OO interface - please help (e.g., w/ an example). Thanks, DG >>> >From the examples >http://matplotlib.sourceforge.net/matplotlib_examples_0.98.0.zip ../