Skip to content

Commit 36178c8

Browse files
author
Steve Chaplin
committed
SC 07/11/2004
svn path=/trunk/matplotlib/; revision=669
1 parent 0beb501 commit 36178c8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/matplotlib/backends/backend_cairo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,8 @@ def print_figure_fn(figure, filename, dpi=150, facecolor='w', edgecolor='w',
530530
figure.set_edgecolor(edgecolor)
531531

532532
ext = ext.lower()
533-
if isinstance(filename, file):
534-
# for fileobjects assume PNG format
533+
if isinstance(filename, file): # eg when do savefig(sys.stdout)
534+
# assume PNG format
535535
_save_png (figure, filename)
536536
elif ext in ('png', 'ps'): # native formats
537537
try:

unit/memleak_hawaii3.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
#!/usr/bin/env python
2+
13
import os, sys, time
24
import matplotlib
3-
matplotlib.use('Agg')
5+
matplotlib.use('Cairo')
46
from matplotlib.matlab import *
57

68

0 commit comments

Comments
 (0)