Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ae4682

Browse files
committed
Fix offset_copy: the fig argument should be optional.
svn path=/branches/v0_99_maint/; revision=8160
1 parent 19873d1 commit 2ae4682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2265,7 +2265,7 @@ def interval_contains_open(interval, val):
22652265
((a < b) and (a < val and b > val))
22662266
or (b < val and a > val))
22672267

2268-
def offset_copy(trans, fig, x=0.0, y=0.0, units='inches'):
2268+
def offset_copy(trans, fig=None, x=0.0, y=0.0, units='inches'):
22692269
'''
22702270
Return a new transform with an added offset.
22712271
args:

0 commit comments

Comments
 (0)