Skip to content

[MNT]: PolarTransform deprecation didn't warn #31624

@rcomer

Description

@rcomer

Summary

Taking a simplified version of the code from #31622

import matplotlib.pyplot as plt
import numpy as np

from matplotlib.projections import PolarAxes
from matplotlib.transforms import Affine2D
from mpl_toolkits.axisartist import GridHelperCurveLinear, HostAxes


fig = plt.figure()
tr = (
    Affine2D().scale(np.pi / 180., 1.) +
    PolarAxes.PolarTransform(apply_theta_transforms=False)
)
grid_helper = GridHelperCurveLinear(tr)
ax1 = fig.add_subplot(axes_class=HostAxes, grid_helper=grid_helper)

    
plt.show()

With v3.10.8 this runs with no warnings. With main and the 3.11 release candidate this fails because we removed the apply_theta_transforms parameter at #30004. Since the deprecation warning hasn't been showing up, should we reinstate the parameter for another couple of versions?

Proposed fix

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    MaintenanceRelease criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions