Skip to content

Commit

Permalink
Release note, deprecation notices, doc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AnsonTran committed Apr 21, 2024
1 parent 50d469d commit 983b318
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
Binary file modified doc/_static/transforms.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions doc/api/next_api_changes/deprecations/28098-AT.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
``Affine2DBase``, ``BlendedAffine2D`` and ``CompositeAffine2D``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In order to support 3-dimensional transforms, the following deprecations have been
made. The deprecated classes can be directly replaced with the new alternatives

- ``Affine2DBase`` has been replaced with ``AffineImmutable``
- ``BlendedAffine2D`` has been replaced with ``BlendedAffine``
- ``CompositeAffine2D`` has been replaced with ``CompositeAffine``.
16 changes: 16 additions & 0 deletions doc/users/next_whats_new/non_2d_transforms.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Added support for Non 2-dimensional transforms
----------------------------------------------

Support has been added for transforms in matplotlib that aren't 2D.

``AffineImmutable`` directly replaces ``Affine2DBase``, and introduces a ``dims``
keyword that specifies the dimension of the transform, defaulting to 2.

``BlendedAffine`` directly replaces ``BlendedAffine2D``, and can blend more than
two transforms, with each transform handling a different axis.

``CompositeAffine`` directly replaces ``CompositeAffine2D``, and composes two Affine
transforms, as long as they have the same dimensions.

``IdentityTransform`` can create identity matrices of any dimension, through the use of
the ``dims`` keyword.

0 comments on commit 983b318

Please sign in to comment.