File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525import matplotlib .font_manager as font_manager
2626import matplotlib .text as mtext
2727import matplotlib .image as mimage
28+ import matplotlib .path as mpath
2829from matplotlib .rcsetup import cycler , validate_axisbelow
2930
3031_log = logging .getLogger (__name__ )
@@ -2094,7 +2095,9 @@ def _update_patch_limits(self, patch):
20942095 if (isinstance (patch , mpatches .Rectangle ) and
20952096 ((not patch .get_width ()) and (not patch .get_height ()))):
20962097 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 ])
20982101 if vertices .size > 0 :
20992102 xys = patch .get_patch_transform ().transform (vertices )
21002103 if patch .get_data_transform () != self .transData :
You can’t perform that action at this time.
0 commit comments