Skip to content

Commit

Permalink
Fix: PDF Scaling Bug (#1382)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-reimonn authored Jan 7, 2025
1 parent 6802220 commit a128e67
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions datashader/mpl_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def shade(self, binned):
"""Convert an aggregate into an RGBA array."""
raise NotImplementedError

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

trans = self.get_transform()
transformed_bbox = TransformedBbox(bbox, trans)
if (
self.plot_width is not None
or self.plot_height is not None
or self.width_scale != 1.0
or self.height_scale != 1.0
):
unsampled = False

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

0 comments on commit a128e67

Please sign in to comment.