save figure object


Thanks for your answer! I really appreciate it. Are there any examples of ProjectFigure classes out there from which I could learn how to implement such a functionality?

Best wishes,

-------- Original-Nachricht --------


Datum: Wed, 3 Nov 2010 17:04:54 -0700
Von: Chloe Lewis <chlewis@...1016...>
An: Anita Graser <anitagraser@...1843...>
Betreff: Re: [Matplotlib-users] save figure object


I don't think so, though I'm no expert. A common thing to do, with
other good side-effects, is to set up your data in a systematic way
and write ProjectFigure classes that easily deal with your data; then
pickle the data and make a figure with ProjectFigure when you un-
pickle it. That 'live' figure can be tweaked before you save an image,
or perhaps you can improve the whole ProjectFigure class. (Other
niceties: decide how you want to do print, onscreen, overhead images,
and switch fonts and weights and sizes in the custom Figure class; etc.)

Not the same as Matlab, though.


On Nov 3, 2010, at 3 Nov, 7:31 AM, Anita Graser wrote:

> Hi,
> I'm looking for a way to save Matplotlib figure objects the way
> Matlab can do it. I found the same request from 2008:
Thread: [Matplotlib-users] save or pickle figure object | matplotlib
> The answer basically was "There is currently no easy way".
> Has the status changed since 2008?
> Best wishes,
> Anita
> --
> GMX DSL Doppel-Flat ab 19,99 &euro;/mtl.! Jetzt auch mit
> gratis Notebook-Flat! Aktuelle Nachrichten aus Politik, Wirtschaft & Panorama | GMX
> Achieve Improved Network Security with IP and DNS Reputation.
> Defend against bad network traffic, including botnets, malware,
> phishing sites, and compromised hosts - saving your company time,
> money, and embarrassment. Learn More!
> _______________________________________________
> Matplotlib-users mailing list
> matplotlib-users List Signup and Options

Chloe Lewis
Ecosystem Sciences, Policy and Management, UC Berkeley
137 Mulford Hall
Berkeley, CA 94720-3114

Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -
jetzt kostenlos herunterladen! Aktuelle Nachrichten aus Politik, Wirtschaft & Panorama | GMX