Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d02a213

Browse files
committed
Made draw_quad_mesh work.
svn path=/trunk/matplotlib/; revision=2388
1 parent e431264 commit d02a213

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

lib/matplotlib/backend_bases.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
from cbook import is_string_like, enumerate, strip_math, Stack
1010
from colors import colorConverter
11-
from numerix import array, sqrt, pi, log, asarray, ones, Float
11+
from numerix import array, sqrt, pi, log, asarray, ones, zeros, Float, Float32
12+
from numerix import arange, compress, take
1213
from patches import Rectangle
1314
from transforms import lbwh_to_bbox, identity_transform
1415

@@ -175,7 +176,9 @@ def draw_point(self, gc, x, y):
175176
"""
176177
raise NotImplementedError
177178

178-
def draw_quad_mesh(self, meshWidth, meshHeight, colors, xCoords, yCoords, clipbox, transform, offsets, transOffset, showedges):
179+
def draw_quad_mesh(self, meshWidth, meshHeight, colors,
180+
xCoords, yCoords, clipbox,
181+
transform, offsets, transOffset, showedges):
179182
"""
180183
Draw a quadrilateral mesh
181184
See documentation in QuadMesh class in collections.py for details
@@ -197,7 +200,9 @@ def draw_quad_mesh(self, meshWidth, meshHeight, colors, xCoords, yCoords, clipbo
197200
edgecolors = colors
198201
else:
199202
edgecolors = (0, 0, 0, 1),
200-
draw_poly_collection(self, verts, transform, clipbox, colors, edgecolors, (0.25,), (0,), offsets, transOffset)
203+
self.draw_poly_collection(verts, transform,
204+
clipbox, colors, edgecolors,
205+
(0.25,), (0,), offsets, transOffset)
201206

202207
def draw_poly_collection(
203208
self, verts, transform, clipbox, facecolors, edgecolors,

0 commit comments

Comments
 (0)