File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 25
25
import matplotlib .font_manager as font_manager
26
26
import matplotlib .text as mtext
27
27
import matplotlib .image as mimage
28
+ import matplotlib .path as mpath
28
29
from matplotlib .rcsetup import cycler , validate_axisbelow
29
30
30
31
_log = logging .getLogger (__name__ )
@@ -2094,7 +2095,9 @@ def _update_patch_limits(self, patch):
2094
2095
if (isinstance (patch , mpatches .Rectangle ) and
2095
2096
((not patch .get_width ()) and (not patch .get_height ()))):
2096
2097
return
2097
- vertices = patch .get_path ().vertices
2098
+ vertices = np .array ([v for s in patch .get_path ().iter_segments ()
2099
+ if s [1 ] != mpath .Path .CLOSEPOLY
2100
+ for v in s [0 ]]).reshape ([- 1 ,2 ])
2098
2101
if vertices .size > 0 :
2099
2102
xys = patch .get_patch_transform ().transform (vertices )
2100
2103
if patch .get_data_transform () != self .transData :
You can’t perform that action at this time.
0 commit comments