8000 Fix for all backends · matplotlib/matplotlib@73b7b7c · GitHub
[go: up one dir, main page]

Skip to content

Commit 73b7b7c

Browse files
committed
Fix for all backends
1 parent 34c755c commit 73b7b7c

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

lib/matplotlib/backends/backend_mixed.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,3 @@ def stop_rasterizing(self):
142142
self._bbox_inches_restore,
143143
self._figdpi)
144144
self._bbox_inches_restore = r
145-
146-
@property
147-
def width(self):
148-
return _width
149-
150-
@property
151-
def height(self):
152-
return _height

lib/matplotlib/collections.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,9 @@ def draw(self, renderer):
287287
else:
288288
combined_transform = transform
289289
extents = paths[0].get_extents(combined_transform)
290-
if (extents.width < renderer.width and
291-
extents.height < renderer.height):
290+
width, height = renderer.get_canvas_width_height()
291+
if (extents.width < width and
292+
extents.height < height):
292293
do_single_path_optimization = True
293294

294295
if do_single_path_optimization:

0 commit comments

Comments
 (0)
0