Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/matplotlib/projections/polar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down