On Tue, Oct 21, 2008 at 8:04 AM, jason_h <[EMAIL PROTECTED]> wrote: > > Hello, > we want to add a new backend for some specific XML format. > > Can I find somewhere a sort of How-To documentation about the required > steps? > > In particular I want to avoid modifying the matplotlib installation which > resides in system directories which not every user has access to. Is it > possible to extend the backend base class to a full backend implementation > located below my home directory, and then have matplotlib use this backend? > > How would I tell matplotlib about my new class, and how do I prepare things > so that a simple > matplotlib.use('MyXML') > will plot in our file format?
If you set the backend to "module://my_backend" where my_backend.py is a backend in your PYTHONPATH, matplotlib will load it and use it. You can also use the -d flag, eg > python simple_ploy.py -d file://my_backend Let us know how it goes! JDH ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel