|
From: <jo...@us...> - 2008-10-11 13:48:30
|
Revision: 6179
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6179&view=rev
Author: jouni
Date: 2008-10-11 13:48:18 +0000 (Sat, 11 Oct 2008)
Log Message:
-----------
When outputting a pdf file on a file object, flush the file at the end
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py
Modified: trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py 2008-10-10 19:43:34 UTC (rev 6178)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py 2008-10-11 13:48:18 UTC (rev 6179)
@@ -446,7 +446,9 @@
self.writeMarkers()
self.writeXref()
self.writeTrailer()
- if not self.passed_in_file_object:
+ if self.passed_in_file_object:
+ self.fh.flush()
+ else:
self.fh.close()
def write(self, data):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|