Revision: 4958
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4958&view=rev
Author: efiring
Date: 2008-02-13 00:34:53 -0800 (Wed, 13 Feb 2008)
Log Message:
-----------
Fixed bugs in pcolorfast and in quadmesh rendering with svg, pdf
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/axes.py
trunk/matplotlib/lib/matplotlib/backends/backend_mixed.py
trunk/matplotlib/lib/matplotlib/image.py
Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py 2008-02-13 02:31:45 UTC (rev
4957)
+++ trunk/matplotlib/lib/matplotlib/axes.py 2008-02-13 08:34:53 UTC (rev
4958)
@@ -5035,7 +5035,8 @@
if (npy.ptp(dx) < 0.01*npy.abs(dx.mean()) and
npy.ptp(dy) < 0.01*npy.abs(dy.mean())):
style = "image"
- style = "pcolorimage"
+ else:
+ style = "pcolorimage"
elif x.ndim == 2 and y.ndim == 2:
style = "quadmesh"
else:
Modified: trunk/matplotlib/lib/matplotlib/backends/backend_mixed.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_mixed.py 2008-02-13
02:31:45 UTC (rev 4957)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_mixed.py 2008-02-13
08:34:53 UTC (rev 4958)
@@ -89,7 +89,7 @@
if w > 0 and h > 0:
image = frombuffer(buffer, w, h, True)
image.is_grayscale = False
-
+ image.flipud_out()
self._renderer.draw_image(l, height - b - h, image, None)
self._raster_renderer = None
self._rasterizing = False
Modified: trunk/matplotlib/lib/matplotlib/image.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/image.py 2008-02-13 02:31:45 UTC (rev
4957)
+++ trunk/matplotlib/lib/matplotlib/image.py 2008-02-13 08:34:53 UTC (rev
4958)
@@ -451,8 +451,8 @@
A = self._rgbacache
vl = self.axes.viewLim
im = _image.pcolor2(self._Ax, self._Ay, A,
- self.axes.bbox.height,
- self.axes.bbox.width,
+ height,
+ width,
(vl.x0, vl.x1, vl.y0, vl.y1),
bg)
im.is_grayscale = self.is_grayscale
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins