Re: [matplotlib-devel] Question on sphinxext.plot_directive...

2009-09-15 Thread Michael Droettboom
Fernando Perez wrote: > Hi Michael, > > On Mon, Sep 14, 2009 at 6:57 AM, Michael Droettboom wrote: > >> I'm not sure it's that bad. It's certainly possible to do all these things >> with a single directive, since providing a path or providing source code is >> mutually exclusive. The thing on

Re: [matplotlib-devel] Question on sphinxext.plot_directive...

2009-09-15 Thread Fernando Perez
On Tue, Sep 15, 2009 at 7:57 AM, Michael Droettboom wrote: > Yeah, I have the same "not quite right" feeling about it.  What about > putting the caption in an "option" such as: > >  .. plot:: foo.py >    :caption: This is my caption > > I don't know if the caption can have newlines in this mode,

Re: [matplotlib-devel] matplotlib image tutorial

2009-09-15 Thread Erik Tollerud
I was looking through this, and have a suggestion as well: You have a line that reads In[10]: plt.hist(lum_img) This should probably be plt.hist(lum_img.ravel(),bins=) As it is right now, you are making a histogram of each line individually, and my experience has been that this tends to cause is

Re: [matplotlib-devel] matplotlib image tutorial

2009-09-15 Thread Fernando Perez
Hi Michael, On Sat, Aug 29, 2009 at 9:45 AM, John Hunter wrote: > On Sat, Aug 29, 2009 at 10:58 AM, Michael Sarahan > wrote: >> Here you go.  If you can think of anything else to include, I'll work >> on it.  I think the next thing I'll add is something on embedding >> images in the corners of p

[matplotlib-devel] draw_text and draw_tex w/ textpath

2009-09-15 Thread Jae-Joon Lee
Hi, The backend_base in the trunk now has the draw_text_as_path method which draws the text using the textpath module. The draw_text and the draw_tex method calls it by default. This will enable a primitive support for text and tex for all the backend which implements draw_path method. This should