image output in matplotlib

M

mart_jeeha

Hey folks,

I got a problem in printing images from a matplotlib - FigureCanvas
Object (child of a wxFrame, library backend_wx) into jpeg-formatted
files. (I like to create a sequence of images that I can assemble to an
avi)
self.mycanvas.print_figure("test.jpg") merely gives an error stating,
that there should be "an image handler of type 17", which I didn't
come across ever :)

No idea about the handles, does anybody has any hint how to proceed ?
(or any thread I missed to grab..)

thanks a lot and cheers,

Martin
 
J

John Hunter

mart> Hey folks, I got a problem in printing images from a
mart> matplotlib - FigureCanvas Object (child of a wxFrame,
mart> library backend_wx) into jpeg-formatted files. (I like to
mart> create a sequence of images that I can assemble to an avi)
mart> self.mycanvas.print_figure("test.jpg") merely gives an error
mart> stating, that there should be "an image handler of type 17",
mart> which I didn't come across ever :)

Was your wx built with jpeg support? You might try png, which
matplotlib supports natively.

JDH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top