You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This significantly improves the speed of `Axes.get_tightbbox()` for
non-rectilinear axes (in particular, PolarAxes and cartopy GeoAxes). By
default, artists added to these axes have an undefined `clip_box` and have
a `clip_path` equivalent to `TransformedPatchPath(ax.patch)` but whose extent
is undefined until the aritst is drawn. Matplotlib currently skips artists
in the `Axes.get_tightbbox()` computation only if their `clip_box` is
defined and its extents are equivalent to `ax.bbox.extents`, but this fails
to skip artists clipped by `TransformedPatchPath(ax.patch)`. This PR adds
`ax.patch.get_window_extent()` to the list of bounding boxes used by
`Axes.get_tightbbox()`, removes `Artist._get_clipping_extent_bbox()`,
adds `Artist._is_axes_clipped()`, and prevents `Axes.get_tightbbox()` from
drawing artists clipped by either `ax.bbox` or `ax.patch` (i.e. artists
for which `Artist._is_axes_clipped()` returns True).
0 commit comments