Revision: 6761
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6761&view=rev
Author: efiring
Date: 2009-01-07 22:30:41 +0000 (Wed, 07 Jan 2009)
Log Message:
-----------
Fix validation error in matplotlib.use()
Modified Paths:
--------------
branches/v0_98_5_maint/lib/matplotlib/__init__.py
Modified: branches/v0_98_5_maint/lib/matplotlib/__init__.py
===================================================================
--- branches/v0_98_5_maint/lib/matplotlib/__init__.py 2009-01-07 18:09:46 UTC
(rev 6760)
+++ branches/v0_98_5_maint/lib/matplotlib/__init__.py 2009-01-07 22:30:41 UTC
(rev 6761)
@@ -679,7 +679,7 @@
"%s"\n\t%s' % (val, cnt, line, fname, msg))
elif key in _deprecated_ignore_map:
warnings.warn('%s is deprecated. Update your matplotlibrc to use
%s instead.'% (key, _deprecated_ignore_map[key]))
-
+
else:
print >> sys.stderr, """
Bad key "%s" on line %d in
@@ -838,9 +838,12 @@
else:
be_parts = arg.split('.')
name = validate_backend(be_parts[0])
+ if len(be_parts) > 1:
+ if name == 'cairo':
+ rcParams['cairo.format'] = validate_cairo_format(be_parts[1])
+ else:
+ raise ValueError('Only cairo backend has a format option')
rcParams['backend'] = name
- if name == 'cairo' and len(be_parts) > 1:
- rcParams['cairo.format'] = validate_cairo_format(be_parts[1])
def get_backend():
"Returns the current backend"
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins