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] Text positioning anchored to its bounding box

2013-01-16 Thread Paul Hobson
On Wed, Jan 16, 2013 at 7:07 AM, Daniele Nicolodi wrote: > Hello, > > I use matplotlib.pyplot.text() to annotate my plots. > > When annotating reference lines on simple x,y plots I find it quite > annoying to have to manually compute an offset in data coordinates to > have some spacing between the

[Matplotlib-users] Text positioning anchored to its bounding box

2013-01-16 Thread Daniele Nicolodi
Hello, I use matplotlib.pyplot.text() to annotate my plots. When annotating reference lines on simple x,y plots I find it quite annoying to have to manually compute an offset in data coordinates to have some spacing between the line I'm labeling and the label itself. With the bbox={'pad': paddin

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] mathtext and fonts under Windows 8

2013-01-16 Thread CAB
Dear Mike & Paul,   Thanks for your replies.  I tried Mike's protocol, and I found that font_manager found the Arial font ("C:\\Windows\\fonts\\Arial.ttf") in the right place.  I don't have fontforge yet, so I guess I need to install and check it out.   But the thing that bothers me about this e

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