Skip to content

Commit a128e67

Browse files
Fix: PDF Scaling Bug (#1382)
1 parent 6802220 commit a128e67

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

datashader/mpl_ext.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def shade(self, binned):
252252
"""Convert an aggregate into an RGBA array."""
253253
raise NotImplementedError
254254

255-
def make_image(self, renderer, magnification=1.0, unsampled=True):
255+
def make_image(self, renderer, magnification=1.0, unsampled=False):
256256
"""
257257
Normalize, rescale, and colormap this image's data for rendering using
258258
*renderer*, with the given *magnification*.
@@ -279,13 +279,6 @@ def make_image(self, renderer, magnification=1.0, unsampled=True):
279279

280280
trans = self.get_transform()
281281
transformed_bbox = TransformedBbox(bbox, trans)
282-
if (
283-
self.plot_width is not None
284-
or self.plot_height is not None
285-
or self.width_scale != 1.0
286-
or self.height_scale != 1.0
287-
):
288-
unsampled = False
289282

290283
# Aggregate
291284
binned = self.aggregate([x1, x2], [y1, y2])

0 commit comments

Comments
 (0)