Skip to content

Commit 64e2b9c

Browse files
committed
Fix offset_copy: the fig argument should be optional.
svn path=/trunk/matplotlib/; revision=8161
1 parent 30dc5c0 commit 64e2b9c

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
@@ -2284,7 +2284,7 @@ def interval_contains_open(interval, val):
22842284
((a < b) and (a < val and b > val))
22852285
or (b < val and a > val))
22862286

2287-
def offset_copy(trans, fig, x=0.0, y=0.0, units='inches'):
2287+
def offset_copy(trans, fig=None, x=0.0, y=0.0, units='inches'):
22882288
'''
22892289
Return a new transform with an added offset.
22902290
args:

0 commit comments

Comments
 (0)