Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 64e3674

Browse filesBrowse files
committed
Release note, deprecation notices, doc changes
1 parent 45611a8 commit 64e3674
Copy full SHA for 64e3674

File tree

6 files changed

+34
-12
lines changed
Filter options

6 files changed

+34
-12
lines changed

‎doc/_static/transforms.png

Copy file name to clipboard
-12.8 KB
Loading
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
``Affine2DBase``, ``BlendedAffine2D`` and ``CompositeAffine2D``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
...are deprecated and replaced with ``AffineImmutable``, ``BlendedAffine``, and
5+
``CompositeAffine`` respectively.

‎doc/api/transformations.rst

Copy file name to clipboardExpand all lines: doc/api/transformations.rst
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
.. automodule:: matplotlib.transforms
99
:members: TransformNode, BboxBase, Bbox, TransformedBbox, Transform,
10-
TransformWrapper, AffineBase, Affine2DBase, Affine2D, IdentityTransform,
11-
BlendedGenericTransform, BlendedAffine2D, blended_transform_factory,
12-
CompositeGenericTransform, CompositeAffine2D,
13-
composite_transform_factory, BboxTransform, BboxTransformTo,
10+
TransformWrapper, AffineBase, AffineImmutable, Affine2DBase, Affine2D,
11+
IdentityTransform, BlendedGenericTransform, BlendedAffine, BlendedAffine2D,
12+
blended_transform_factory, CompositeGenericTransform, CompositeAffine,
13+
CompositeAffine2D, composite_transform_factory, BboxTransform, BboxTransformTo,
1414
BboxTransformFrom, ScaledTranslation, TransformedPath, nonsingular,
1515
interval_contains, interval_contains_open
1616
:show-inheritance:
+16Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Added support for Non 2-dimensional transforms
2+
----------------------------------------------
3+
4+
Support has been added for transforms in matplotlib that aren't 2D.
5+
6+
``AffineImmutable`` directly replaces ``Affine2DBase``, and introduces a ``dims``
7+
keyword that specifies the dimension of the transform, defaulting to 2.
8+
9+
``BlendedAffine`` directly replaces ``BlendedAffine2D``, and can blend more than
10+
two transforms, with each transform handling a different axis.
11+
12+
``CompositeAffine`` directly replaces ``CompositeAffine2D``, and composes two Affine
13+
transforms, as long as they have the same dimensions.
14+
15+
``IdentityTransform`` can create identity matrices of any dimension, through the use of
16+
the ``dims`` keyword.

‎doc/users/prev_whats_new/whats_new_1.4.rst

Copy file name to clipboardExpand all lines: doc/users/prev_whats_new/whats_new_1.4.rst
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,11 @@ every subplot and you need to make some space for legend's labels.
155155
Support for skewed transformations
156156
``````````````````````````````````
157157
The :class:`~matplotlib.transforms.Affine2D` gained additional methods
158-
`.skew` and `.skew_deg` to create skewed transformations. Additionally,
159-
matplotlib internals were cleaned up to support using such transforms in
160-
`~matplotlib.axes.Axes`. This transform is important for some plot types,
161-
specifically the Skew-T used in meteorology.
158+
:func:`~matplotlib.transforms.Affine2D.skew` and
159+
:func:`~matplotlib.transforms.Affine2D.skew_deg` to create skewed transformations.
160+
Additionally, matplotlib internals were cleaned up to support using such transforms in
161+
`~matplotlib.axes.Axes`. This transform is important for some plot types, specifically
162+
the Skew-T used in meteorology.
162163

163164
.. figure:: ../../gallery/specialty_plots/images/sphx_glr_skewt_001.png
164165
:target: ../../gallery/specialty_plots/skewt.html

‎galleries/tutorials/artists.py

Copy file name to clipboardExpand all lines: galleries/tutorials/artists.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -463,15 +463,15 @@ class in the Matplotlib API, and the one you will be working with most
463463
# In [268]: print(rect.get_data_transform())
464464
# CompositeGenericTransform(
465465
# TransformWrapper(
466-
# BlendedAffine2D(
466+
# BlendedAffine(
467467
# IdentityTransform(),
468468
# IdentityTransform())),
469469
# CompositeGenericTransform(
470470
# BboxTransformFrom(
471471
# TransformedBbox(
472472
# Bbox(x0=0.0, y0=0.0, x1=1.0, y1=1.0),
473473
# TransformWrapper(
474-
# BlendedAffine2D(
474+
# BlendedAffine(
475475
# IdentityTransform(),
476476
# IdentityTransform())))),
477477
# BboxTransformTo(
@@ -489,15 +489,15 @@ class in the Matplotlib API, and the one you will be working with most
489489
# In [269]: print(ax.transData)
490490
# CompositeGenericTransform(
491491
# TransformWrapper(
492-
# BlendedAffine2D(
492+
# BlendedAffine(
493493
# IdentityTransform(),
494494
# IdentityTransform())),
495495
# CompositeGenericTransform(
496496
# BboxTransformFrom(
497497
# TransformedBbox(
498498
# Bbox(x0=0.0, y0=0.0, x1=1.0, y1=1.0),
499499
# TransformWrapper(
500-
# BlendedAffine2D(
500+
# BlendedAffine(
501501
# IdentityTransform(),
502502
# IdentityTransform())))),
503503
# BboxTransformTo(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.