SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

Revision: 3717
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3717&view=rev
Author: mdboom
Date: 2007年08月20日 05:47:42 -0700 (2007年8月20日)
Log Message:
-----------
Take a version check out of the method call. Thanks to Fernando Perez.
Modified Paths:
--------------
 trunk/matplotlib/lib/matplotlib/backends/backend_gtkcairo.py
Modified: trunk/matplotlib/lib/matplotlib/backends/backend_gtkcairo.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_gtkcairo.py	2007年08月20日 12:46:53 UTC (rev 3716)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_gtkcairo.py	2007年08月20日 12:47:42 UTC (rev 3717)
@@ -29,12 +29,14 @@
 
 
 class RendererGTKCairo (backend_cairo.RendererCairo):
- def set_pixmap (self, pixmap):
- if gtk.pygtk_version >= (2,7,0):
+ if gtk.pygtk_version >= (2,7,0):
+ def set_pixmap (self, pixmap):
 self.ctx = pixmap.cairo_create()
- else:
+ self.ctx.save() # restore, save - when call new_gc()
+ else:
+ def set_pixmap (self, pixmap):
 self.ctx = cairo.gtk.gdk_cairo_create (pixmap)
- self.ctx.save() # restore, save - when call new_gc()
+ self.ctx.save() # restore, save - when call new_gc()
 
 
 class FigureCanvasGTKCairo(FigureCanvasGTK):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /