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

Method _set_view

lib/matplotlib/axes/_base.py:4361–4371  ·  view source on GitHub ↗

Apply a previously saved view. This method is called when restoring a view (with the return value of :meth:`_get_view` as argument), such as with the navigation buttons. Subclasses that override :meth:`_get_view` also need to override this method accordingl

(self, view)

Source from the content-addressed store, hash-verified

4359 }
4360
4361 def _set_view(self, view):
4362 """
4363 Apply a previously saved view.
4364
4365 This method is called when restoring a view (with the return value of
4366 :meth:`_get_view` as argument), such as with the navigation buttons.
4367
4368 Subclasses that override :meth:`_get_view` also need to override this method
4369 accordingly.
4370 """
4371 self.set(**view)
4372
4373 def _prepare_view_from_bbox(self, bbox, direction='in',
4374 mode=None, twinx=False, twiny=False):

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected