Re: [Matplotlib-users] creating an object oriented matplotlib figure

2013-01-17 Thread Kelson Zawack
So I looked into it and the reason calling the show method for a Figure/FigureManager causes the figure to be visible only for an instant is that, at least in the case for tkagg, there is no call to a function that blocks until the figure window is closed and as a result the figure is displayed

Re: [Matplotlib-users] creating an object oriented matplotlib figure

2013-01-16 Thread Kelson Zawack
I am running 1.2.0 On 1/16/13 10:23 AM, Benjamin Root wrote: On Wed, Jan 16, 2013 at 5:50 AM, Kelson Zawack > wrote: Ok, I understand about agg, but I am still a bit confused. First when I run the suggested code using whatever the default backend is the f

Re: [Matplotlib-users] creating an object oriented matplotlib figure

2013-01-16 Thread Benjamin Root
On Wed, Jan 16, 2013 at 5:50 AM, Kelson Zawack wrote: > Ok, I understand about agg, but I am still a bit confused. First when I > run the suggested code using whatever the default backend is the figure is > only displayed for a second and then it goes away and the program ends. I > guess what

Re: [Matplotlib-users] creating an object oriented matplotlib figure

2013-01-16 Thread Alan G Isaac
On 1/16/2013 4:39 AM, Kelson Zawack wrote: > I want to create a matplotlib figure as part of a program I am writing > and therefore would like to create the figure in a fully object oriented > way, ie not in the pyplot state-full way. Perhaps you will find it useful to look at the TSPlot class at

Re: [Matplotlib-users] creating an object oriented matplotlib figure

2013-01-16 Thread Vlastimil Brom
2013/1/16 Kelson Zawack : > I want to create a matplotlib figure as part of a program I am writing > and therefore would like to create the figure in a fully object oriented > way, ie not in the pyplot state-full way. I understand how to work with > a figure object to create axes objects and then

Re: [Matplotlib-users] creating an object oriented matplotlib figure

2013-01-16 Thread Kelson Zawack
Ok, I understand about agg, but I am still a bit confused. First when I run the suggested code using whatever the default backend is the figure is only displayed for a second and then it goes away and the program ends. I guess what I am really interested in is what plt.figure() does. It seem

Re: [Matplotlib-users] creating an object oriented matplotlib figure

2013-01-16 Thread Francesco Montesano
Hi Kelson, 2013/1/16 Kelson Zawack > I want to create a matplotlib figure as part of a program I am writing > and therefore would like to create the figure in a fully object oriented > way, ie not in the pyplot state-full way. I understand how to work with > a figure object to create axes objec

[Matplotlib-users] creating an object oriented matplotlib figure

2013-01-16 Thread Kelson Zawack
I want to create a matplotlib figure as part of a program I am writing and therefore would like to create the figure in a fully object oriented way, ie not in the pyplot state-full way. I understand how to work with a figure object to create axes objects and then fill the axes objects with pri