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

Skip to content

Commit ff16da1

Browse files
committed
Clarify interaction between params of get_path_collection_extents.
That master_transform is ignored is clear looking at the implementation in _path.h (the `if (Ntransforms)` branch drops master_transform; compare with the implementation of point_in_path_collection). One can also compare ``` from matplotlib.path import *; from matplotlib.transforms import * get_path_collection_extents( Affine2D().scale(2, 3), [Path([(1, 2), (3, 4)])], [], [(0, 0)], IdentityTransform()) get_path_collection_extents( Affine2D().scale(2, 3), [Path([(1, 2), (3, 4)])], [IdentityTransform()], [(0, 0)], IdentityTransform()) ```
1 parent bba391d commit ff16da1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/path.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,6 +1063,7 @@ def get_path_collection_extents(
10631063
Global transformation applied to all paths.
10641064
paths : list of `Path`
10651065
transforms : list of `~matplotlib.transforms.Affine2DBase`
1066+
If non-empty, this overrides *master_transform*.
10661067
offsets : (N, 2) array-like
10671068
offset_transform : `~matplotlib.transforms.Affine2DBase`
10681069
Transform applied to the offsets before offsetting the path.

0 commit comments

Comments
 (0)