8000 SC 12/02/2005 · matplotlib/matplotlib@73688f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 73688f5

Browse files
author
Steve Chaplin
committed
SC 12/02/2005
svn path=/trunk/matplotlib/; revision=961
1 parent e6b6081 commit 73688f5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/matplotlib/backends/backend_gdk.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def fn_name(): return sys._getframe(1).f_code.co_name
1010
where, transpose, nonzero, indices, ones, nx
1111

1212
import matplotlib.numerix as numerix
13-
from matplotlib.cbook import is_string_like, enumerate, onetrue
13+
from matplotlib.cbook import is_string_like, enumerate
1414
from matplotlib.font_manager import fontManager
1515

1616
from matplotlib.backend_bases import RendererBase, GraphicsContextBase, \
@@ -234,9 +234,8 @@ def _draw_mathtext(self, gc, x, y, s, prop, angle):
234234
# convert it to it's proper shape
235235
Xs.shape = imh, imw
236236

237-
pb=gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB,
238-
#has_alpha=1, bits_per_sample=8, width=imw, height=imh)
239-
has_alpha=True, bits_per_sample=8, width=imw, height=imh)
237+
pb = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, has_alpha=True,
238+
bits_per_sample=8, width=imw, height=imh)
240239

241240
try:
242241
pa = pb.get_pixels_array()

0 commit comments

Comments
 (0)
0