John Hunter-4 wrote:
>
> On Tue, Oct 21, 2008 at 8:40 AM, John Hunter <[EMAIL PROTECTED]> wrote:
> import matplotlib
> matplotlib.use('module://my_backend')
>
Unfortunately that doesn't work for me. I get a "ValueError: Unrecognized
backend string "module://mybackend"" in rcsetup.py. Any other suggestions?
Matplotlib ist version 0.98.3.
Here is the output:
$ python
Python 2.5.1 (r251:54863, Mar 7 2008, 03:41:45)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.use("module://mybackend")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line 809,
in use
rcParams['backend'] = name
File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line 588,
in __setitem__
cval = self.validate[key](val)
File "/usr/lib/python2.5/site-packages/matplotlib/rcsetup.py", line 49, in
__call__
% (self.key, s, self.valid.values()))
ValueError: Unrecognized backend string "module://mybackend": valid strings
are ['ps', 'Qt4Agg', 'FltkAgg', 'GTKAgg', 'agg', 'cairo', 'GTK', 'GTKCairo',
'WXAgg', 'TkAgg', 'QtAgg', 'svg', 'pdf', 'CocoaAgg', 'emf', 'gdk',
'template', 'WX']
>>>
Neither does the -d option work. "python --help" says:
...
-d : debug output from parser (also PYTHONDEBUG=x)
...
How is this option related to plotting backends?
Thanks
Jason
--
View this message in context:
http://www.nabble.com/How-to-add-a-new-backend--tp20089848p20091178.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel