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

Skip to content

Commit c47425b

Browse files
committed
Merged revisions 5018 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_91_maint ........ r5018 | jouni | 2008-03-23 19:44:11 +0200 (Sun, 23 Mar 2008) | 3 lines Fix a pdf backend bug which sometimes caused the outermost gsave to not be balanced with a grestore. ........ svn path=/trunk/matplotlib/; revision=5019
1 parent 9099da2 commit c47425b

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2008-03-23 Fix a pdf backend bug which sometimes caused the outermost
2+
gsave to not be balanced with a grestore. - JKS
3+
14
2008-03-20 Fixed a minor bug in ContourSet._process_linestyles when
25
len(linestyles)==Nlev - MM
36

lib/matplotlib/backends/backend_pdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ def __init__(self, file, dpi):
11741174
self.tex_font_map = None
11751175

11761176
def finalize(self):
1177-
self.gc.finalize()
1177+
self.file.output(*self.gc.finalize())
11781178

11791179
def check_gc(self, gc, fillcolor=None):
11801180
orig_fill = gc._fillcolor

0 commit comments

Comments
 (0)