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

Method _set_loc

lib/matplotlib/legend.py:730–737  ·  view source on GitHub ↗
(self, loc)

Source from the content-addressed store, hash-verified

728 self._loc_used_default = tmp # ignore changes done by _set_loc
729
730 def _set_loc(self, loc):
731 # find_offset function will be provided to _legend_box and
732 # _legend_box will draw itself at the location of the return
733 # value of the find_offset.
734 self._loc_used_default = False
735 self._loc_real = loc
736 self.stale = True
737 self._legend_box.set_offset(self._findoffset)
738
739 def set_ncols(self, ncols):
740 """Set the number of columns."""

Callers 1

set_locMethod · 0.95

Calls 1

set_offsetMethod · 0.45

Tested by

no test coverage detected