Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 16c1850 + 46bd2ff commit 39375deCopy full SHA for 39375de
1 file changed
lib/matplotlib/collections.py
@@ -295,13 +295,12 @@ def draw(self, renderer):
295
len(self._antialiaseds) == 1 and len(self._urls) == 1 and
296
self.get_hatch() is None):
297
if len(trans):
298
- combined_transform = (transforms.Affine2D(trans[0]) +
299
- transform)
+ combined_transform = transforms.Affine2D(trans[0]) + transform
300
else:
301
combined_transform = transform
302
extents = paths[0].get_extents(combined_transform)
303
- width, height = renderer.get_canvas_width_height()
304
- if extents.width < width and extents.height < height:
+ if (extents.width < self.figure.bbox.width
+ and extents.height < self.figure.bbox.height):
305
do_single_path_optimization = True
306
307
if self._joinstyle:
0 commit comments