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.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins