Skip to main content
Ctrl+K
Matplotlib 3.12.0.dev272+gfe7830972 documentation - Home Matplotlib 3.12.0.dev272+gfe7830972 documentation - Home
  • Plot types
  • User guide
  • Tutorials
  • Examples
  • Reference
  • Contribute
  • Releases
  • Gitter
  • Discourse
  • GitHub
  • Plot types
  • User guide
  • Tutorials
  • Examples
  • Reference
  • Contribute
  • Releases
  • Gitter
  • Discourse
  • GitHub

Section Navigation

  • Instructions for writing "What's new" entries
  • New wedge_labels parameter for pie
  • New config option for matplotlib.sphinxext.plot_directive: plot_skip_execution
  • PolarAxes.get_rlim() and get_thetalim() added
  • Release notes
  • Next what's new?
  • PolarAxes.get_rlim() and get_thetalim() added

PolarAxes.get_rlim() and get_thetalim() added#

PolarAxes now provides get_rlim and get_thetalim to complement the existing set_rlim and set_thetalim. Previously, one had to use Axes.get_ylim, Axes.get_xlim as a workaround.

ax = plt.subplot(projection="polar")
ax.set_rlim(1, 5)
rmin, rmax = ax.get_rlim()   # was: AttributeError

© Copyright 2002–2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012–2026 The Matplotlib development team.

Created using Sphinx 9.1.0.

Built from v3.11.0-272-gfe7830972.

Built with the PyData Sphinx Theme 0.18.0.