Carl Worth wrote:
> On Thu, 12 Jul 2007 10:31:19 -1000, Eric Firing wrote:
>> if only cairo would make eps files
> 
> Isn't EPS a trivially change compared to PS? Something like a modified
> header and the addition of bounding-box information?

Carl,

My knowledge of graphics topics is sketchy, but yes, in many cases the 
difference between PS and EPS is just a few lines.  This is true for 
Matlab files--ps and eps are identical except for something like 3 
lines.  This works *provided* the ps file doesn't have anything in it 
that is not allowed in eps.  I don't recall the constraints, apart from 
the file being single-page, but I know there are some.  I suspect this 
is not a problem for cairo output, but I haven't tried to check.

> 
> It sounds like something that should be really easy to change in
> cairo.

Yes, so much so that I don't understand why it is not already done.  (I 
know you are a cairo dev--is there not a postscript specialist in the 
cairo dev community?)

> 
> Maybe you could take a cairo-generated .ps file and manually munge it
> into the .eps that you'd like? If you did that, I'd be glad to write
> the necessary cairo code to get the same result, (and come up with
> whatever tiny new API is necessary to instruct cairo to do that).

If no one else steps forward, I can try to look at it fairly soon--but I 
am really not the right person to do it.

> 
> As for the rest of what you say. From my point of view, yes, using
> cairo and its multi-backend capabilities seems to make a fair amount
> more sense than inventing a new system with multiple backends. (Not a
> criticism against the original MPL stuff---cairo 1.0 has only existed
> since August 2005).
> 
> But yeah, I also understand that there are licensing concerns.
> Anything else? Are there cairo performance concerns? If so, I'd love
> to hear about them so we can fix them.

Well, I think that for screen display and for png generation, Agg is 
significantly faster.  Backend_driver.py gives

Backend agg took 0.76 minutes to complete
Backend cairo.png took 0.95 minutes to complete
Backend template took 0.46 minutes to complete

I haven't tried to test it, but I suspect that for some types of plots 
the optimizations in Agg and the agg backend will make a much bigger 
difference than the averages above would indicate.

Eric

> And even if you don't use cairo directly, I will offer the suggestion
> of its drawing model as being very good, (using source and mask
> pattern objects and just 5 different drawing operations: stroke, fill,
> paint, show_text/glyphs, and mask).
> 
> Whatever you decide to go with, have fun!
> 
> -Carl


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to