[SciPy-User] Saving Graphs

Jim Vickroy Jim.Vickroy at noaa.gov
Wed Dec 2 12:04:35 EST 2009


Marco wrote:
> Hi all!
>
> In the simulations I write I have to save very often the graph, with
> all the attributes.
> If I save it using gml or something like this, I end up with many
> (say: thousands) of very small files, which are not very practical to
> carry around and tend to full the filesystem very quickly.
>
> I am looking for a way to save graphs (even not single graphs, but
> rather more graphs in the same file) which is a little more clever.
>
> So far I have been looking at pickling the whole thing, but I find it
> rather unsatisfactory.
> I have heard of hdf (or something like this). Looks to me that the
> overhead to use it is rather big.
>
> Someone has highlights, remarks, advice?
>
> Thank you in advance,
>
> marco
>
>
> --
> restituiremo il riso ai salici
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>   
Hi Marco,

Depending on the size and number of graphs, you may consider storing 
them as BLOBs in a sqlite <http://docs.python.org/library/sqlite3.html> 
relational store (or stores).  sqlite is easy to use and is included in 
recent distributions of python.

-- jv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20091202/f020858b/attachment.html>


More information about the SciPy-User mailing list