MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_rlim

Method set_rlim

lib/matplotlib/projections/polar.py:1204–1229  ·  view source on GitHub ↗

Set the radial axis view limits. This function behaves like `.Axes.set_ylim`, but additionally supports *rmin* and *rmax* as aliases for *bottom* and *top*. See Also -------- .Axes.set_ylim

(self, bottom=None, top=None, *,
                 emit=True, auto=False, **kwargs)

Source from the content-addressed store, hash-verified

1202 return np.sign(self._originViewLim.y1 - self._originViewLim.y0)
1203
1204 def set_rlim(self, bottom=None, top=None, *,
1205 emit=True, auto=False, **kwargs):
1206 """
1207 Set the radial axis view limits.
1208
1209 This function behaves like `.Axes.set_ylim`, but additionally supports
1210 *rmin* and *rmax* as aliases for *bottom* and *top*.
1211
1212 See Also
1213 --------
1214 .Axes.set_ylim
1215 """
1216 if 'rmin' in kwargs:
1217 if bottom is None:
1218 bottom = kwargs.pop('rmin')
1219 else:
1220 raise ValueError('Cannot supply both positional "bottom"'
1221 'argument and kwarg "rmin"')
1222 if 'rmax' in kwargs:
1223 if top is None:
1224 top = kwargs.pop('rmax')
1225 else:
1226 raise ValueError('Cannot supply both positional "top"'
1227 'argument and kwarg "rmax"')
1228 return self.set_ylim(bottom=bottom, top=top, emit=emit, auto=auto,
1229 **kwargs)
1230
1231 def get_rlabel_position(self):
1232 """

Callers 5

test_polar_rlimFunction · 0.80
test_polar_rlim_bottomFunction · 0.80
test_polar_logFunction · 0.80
test_polar_log_roriginFunction · 0.80

Calls 2

popMethod · 0.45
set_ylimMethod · 0.45

Tested by 5

test_polar_rlimFunction · 0.64
test_polar_rlim_bottomFunction · 0.64
test_polar_logFunction · 0.64
test_polar_log_roriginFunction · 0.64