|
From: <md...@us...> - 2010-02-26 16:27:29
|
Revision: 8160
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8160&view=rev
Author: mdboom
Date: 2010-02-26 16:27:22 +0000 (Fri, 26 Feb 2010)
Log Message:
-----------
Fix offset_copy: the fig argument should be optional.
Modified Paths:
--------------
branches/v0_99_maint/lib/matplotlib/transforms.py
Modified: branches/v0_99_maint/lib/matplotlib/transforms.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/transforms.py 2010-02-26 16:04:49 UTC (rev 8159)
+++ branches/v0_99_maint/lib/matplotlib/transforms.py 2010-02-26 16:27:22 UTC (rev 8160)
@@ -2265,7 +2265,7 @@
((a < b) and (a < val and b > val))
or (b < val and a > val))
-def offset_copy(trans, fig, x=0.0, y=0.0, units='inches'):
+def offset_copy(trans, fig=None, x=0.0, y=0.0, units='inches'):
'''
Return a new transform with an added offset.
args:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|