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

Skip to content

Commit 2a68b99

Browse files
committed
Bug fix: only draw the figure once.
svn path=/trunk/matplotlib/; revision=680
1 parent 86b5ac4 commit 2a68b99

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

lib/matplotlib/backends/backend_ps.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -585,16 +585,6 @@ def print_figure(self, outfile, dpi=72,
585585

586586
# write the figure
587587
print >>fh, renderer.get_ps()
588-
origfacecolor = self.figure.get_facecolor()
589-
origedgecolor = self.figure.get_edgecolor()
590-
self.figure.set_facecolor(facecolor)
591-
self.figure.set_edgecolor(edgecolor)
592-
593-
renderer = RendererPS(width, height, fh)
594-
self.figure.draw(renderer)
595-
596-
self.figure.set_facecolor(origfacecolor)
597-
self.figure.set_edgecolor(origedgecolor)
598588

599589
# write the trailer
600590
print >>fh, "grestore"

0 commit comments

Comments
 (0)