From 7f85b70acc8a26715099a112073a219bef0c24b8 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Sat, 15 Feb 2020 15:14:40 +0100 Subject: [PATCH] Backport PR #16502: Document theta getters/setters --- lib/matplotlib/projections/polar.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/matplotlib/projections/polar.py b/lib/matplotlib/projections/polar.py index 00692801d85d..0f11abdbe119 100644 --- a/lib/matplotlib/projections/polar.py +++ b/lib/matplotlib/projections/polar.py @@ -1016,15 +1016,19 @@ def _gen_axes_spines(self): return spines def set_thetamax(self, thetamax): + """Set the maximum theta limit in degrees.""" self.viewLim.x1 = np.deg2rad(thetamax) def get_thetamax(self): + """Return the maximum theta limit in degrees.""" return np.rad2deg(self.viewLim.xmax) def set_thetamin(self, thetamin): + """Set the minimum theta limit in degrees.""" self.viewLim.x0 = np.deg2rad(thetamin) def get_thetamin(self): + """Get the minimum theta limit in degrees.""" return np.rad2deg(self.viewLim.xmin) def set_thetalim(self, *args, **kwargs):