SourceForge logo
SourceForge logo
Menu

[matplotlib-devel] Re: [Matplotlib-users] Re: pdf backend

From: Christopher B. <Chr...@no...> - 2006年03月06日 17:28:27
Steve Chaplin wrote:
> Using the latest cairo (git), pycairo (cvs) and matplotlib (svn) and
> running examples/simple_plot.py I get a 22K PDF file. But when I try to
> view it with evince and xpdf I get "unable to open document" type
> errors.
This is just a shot in the dark, but I've been playing with pycairo a 
bit, and found that you need to make sure to call:
cairo.Context.show_page()
When you're done with the rendering. I had similar symptoms before I did 
that.
John,
What are your plans regarding Cairo and the future of rendering for MPL? 
I'm in the need of alpha blended rendering for wxPython stuff, so I've 
been looking at Cairo and Agg. Agg is a great solution for really nice 
rendering, but Cairo has the promise of supporting everything else I 
need, like PDF for instance.
Now that Mozilla seems to be adopting Cairo, it might even live up to 
the promise of a fully cross-platform solution. If so, it would be great 
to develop a really general purpose, robust, numpy-aware, pythonic 
interface for it.
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
 		
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /