Re: [matplotlib-devel] writing plain text to multi page pdf

2009-08-28 Thread Jouni K . Seppänen
John Hunter  writes:

> One of my colleagues want to use PdfPages to create several mpl
> figures in one pdf document.  It would be nice to be able to write
> some text in there directly.

So the user interface might look something like this:

pdf = PdfPages('filename.pdf')
fig=figure()
# ...
pdf.savefig(fig)
pdf.annotate(123,456,'my text here',fontsize=12,font='Helvetica')
pdf.close()

Should the coordinates be raw PDF points measured from the bottom left
corner, or passed through the figure transformation (or something else)?
What sort of font properties would you expect to be allowed?

> One could use the matplotlib.text.Text
> and add it to your figure, and maybe this is the way to go, 

I think that's what the pdf backend would end up doing internally, at
least if anything like coordinate transformations or any interesting
font properties need to be supported. It sounds like a fairly easy
change.

While we're discussing multi-page pdf files, would it be useful to have
pyplot-level support for them? It shouldn't be too hard to have pyplot
track your currently open pdf file and make, say, savefig with no
arguments direct the output to that. I personally don't have a use for
that, but do you think it would be a useful part of pyplot?

-- 
Jouni K. Seppänen
http://www.iki.fi/jks


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] browse svn link on home page

2009-08-28 Thread jason-sage
Is there any chance someone could add a brief reference and link to the 
online svn repository somewhere on the front page of matplotlib?  Maybe 
in the sidebar under "Need help?":

For details on what's new, see the detailed changelog 
 **or browse the 
source code**. Anything that could require changes to your existing 
codes is logged in the api changes 
 file.


where "source code" links to 
http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/

I've run out of fingers and toes for counting how many times I have to 
click around and hunt this down (and I always forget to bookmark it or 
I'm on a new computer!)

Thanks,

Jason

--
Jason Grout


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] browse svn link on home page

2009-08-28 Thread John Hunter
On Fri, Aug 28, 2009 at 9:47 PM,  wrote:
> Is there any chance someone could add a brief reference and link to the
> online svn repository somewhere on the front page of matplotlib?  Maybe
> in the sidebar under "Need help?":
>
> For details on what's new, see the detailed changelog
>  **or browse the
> source code**. Anything that could require changes to your existing
> codes is logged in the api changes
>  file.
>

Done, though I made the link point to trunk/matplotlib since I think
that is what most people will be interested in.

But bookmarks are helpful too :-)

JDH

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel