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

Method draw

lib/matplotlib/axes/_secondary_axes.py:208–220  ·  view source on GitHub ↗

Draw the secondary Axes. Consults the parent Axes for its limits and converts them using the converter specified by `~.axes._secondary_axes.set_functions` (or *functions* parameter when Axes initialized.)

(self, renderer)

Source from the content-addressed store, hash-verified

206 self._set_scale()
207
208 def draw(self, renderer):
209 """
210 Draw the secondary Axes.
211
212 Consults the parent Axes for its limits and converts them
213 using the converter specified by
214 `~.axes._secondary_axes.set_functions` (or *functions*
215 parameter when Axes initialized.)
216 """
217 self._set_lims()
218 # this sets the scale in case the parent has set its scale.
219 self._set_scale()
220 super().draw(renderer)
221
222 def _set_scale(self):
223 """

Callers

nothing calls this directly

Calls 2

_set_limsMethod · 0.95
_set_scaleMethod · 0.95

Tested by

no test coverage detected