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

Method __getstate__

lib/matplotlib/axes/_base.py:804–812  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

802 super().__init_subclass__(**kwargs)
803
804 def __getstate__(self):
805 state = super().__getstate__()
806 # Prune the sharing & twinning info to only contain the current group.
807 state["_shared_axes"] = {
808 name: self._shared_axes[name].get_siblings(self)
809 for name in self._axis_names if self in self._shared_axes[name]}
810 state["_twinned_axes"] = (self._twinned_axes.get_siblings(self)
811 if self in self._twinned_axes else None)
812 return state
813
814 def __setstate__(self, state):
815 # Merge the grouping info back into the global groupers.

Callers

nothing calls this directly

Calls 1

get_siblingsMethod · 0.45

Tested by

no test coverage detected