Revision: 4571
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4571&view=rev
Author: jdh2358
Date: 2007-12-03 18:06:52 -0800 (Mon, 03 Dec 2007)
Log Message:
-----------
applied barrys cocoaagg patch
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/backends/backend_cocoaagg.py
Modified: trunk/matplotlib/lib/matplotlib/backends/backend_cocoaagg.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_cocoaagg.py
2007-12-03 22:32:28 UTC (rev 4570)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_cocoaagg.py
2007-12-04 02:06:52 UTC (rev 4571)
@@ -78,8 +78,8 @@
self.plotWindow.setDelegate_(self)#.plotView)
self.plotView.setImageFrameStyle_(NSImageFrameGroove)
- self.plotView.image = NSImage.alloc().initWithSize_((0,0))
- self.plotView.setImage_(self.plotView.image)
+ self.plotView.image_ = NSImage.alloc().initWithSize_((0,0))
+ self.plotView.setImage_(self.plotView.image_)
# Make imageview first responder for key events
self.plotWindow.makeFirstResponder_(self.plotView)
@@ -112,10 +112,10 @@
w,h = self.canvas.get_width_height()
# Remove all previous images
- for i in xrange(self.image.representations().count()):
-
self.image.removeRepresentation_(self.image.representations().objectAtIndex_(i))
+ for i in xrange(self.image_.representations().count()):
+
self.image_.removeRepresentation_(self.image_.representations().objectAtIndex_(i))
- self.image.setSize_((w,h))
+ self.image_.setSize_((w,h))
brep =
NSBitmapImageRep.alloc().initWithBitmapDataPlanes_pixelsWide_pixelsHigh_bitsPerSample_samplesPerPixel_hasAlpha_isPlanar_colorSpaceName_bytesPerRow_bitsPerPixel_(
(self.canvas.buffer_rgba(0,0),'','','',''), # Image data
@@ -129,7 +129,7 @@
w*4, # row bytes
32) # bits per pixel
- self.image.addRepresentation_(brep)
+ self.image_.addRepresentation_(brep)
self.setNeedsDisplay_(True)
def windowDidResize_(self, sender):
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins