On Thu, May 29, 2008 at 9:40 AM, cyclopsvs <[EMAIL PROTECTED]> wrote:

> Does anyone had some experience with using apache and matplot lib together,
> if so could you share the experiences you had installing everything.
>
> I'd like to know before i continue developing these features of the
> application.

matplotlib renders to a number of different targets, eg user
interfaces, PNG, or postscript.  The user interfaces require an x11
connection, but the image generation backends do not.  Thjese are the
ones you will want to use with apache, django, etc.   What you need to
do is set your default backend to "Agg" in your matplotlibrc file.
This file resides in site-packages/matplotlib/mpl-data and can be
moved into either HOME/..matplotlib or your working directory (eg
where your image generating code lives).  Once this is done mpl will
generate PNGs w/o an X11 connection.

http://www.scipy.org/Cookbook/Matplotlib/Django has some information
on using mpl with django, but it is bit out of date because you no
longer need PIL to save to a file handle.  mpl can now save PNG
directly to a file handle

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to