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

Skip to content

Commit babdf73

Browse files
committed
MNT: minor tweak to checking size
1 parent 48d0ddc commit babdf73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ def draw(self, renderer, *args, **kwargs):
488488
return
489489

490490
# for empty images, there is nothing to draw!
491-
if any(s == 0 for s in self.get_size()):
491+
if self.get_array().size == 0:
492492
self.stale = False
493493
return
494494

0 commit comments

Comments
 (0)