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

Skip to content

Commit 18f4a94

Browse files
committed
Fix bug in PDF clip routine that resulted in the cryptic error message
"There are too many arguments" in Adobe Acrobat. svn path=/trunk/matplotlib/; revision=3829
1 parent 21eb328 commit 18f4a94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backends/backend_pdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1833,7 +1833,7 @@ def clip_cmd(self, cliprect, clippath):
18331833
cmds.extend(self.pop())
18341834
# Unless we hit the right one, set the clip polygon
18351835
if (self._cliprect, self._clippath) != (cliprect, clippath):
1836-
cmds.append(self.push())
1836+
cmds.extend(self.push())
18371837
if self._cliprect != cliprect:
18381838
cmds.extend([t for t in cliprect] +
18391839
[Op.rectangle, Op.clip, Op.endpath])

0 commit comments

Comments
 (0)