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

Method adjust_drawing_area

lib/matplotlib/legend_handler.py:94–101  ·  view source on GitHub ↗
(self, legend, orig_handle,
                            xdescent, ydescent, width, height, fontsize,
                            )

Source from the content-addressed store, hash-verified

92 legend_handle.set_clip_path(None)
93
94 def adjust_drawing_area(self, legend, orig_handle,
95 xdescent, ydescent, width, height, fontsize,
96 ):
97 xdescent = xdescent - self._xpad * fontsize
98 ydescent = ydescent - self._ypad * fontsize
99 width = width - self._xpad * fontsize
100 height = height - self._ypad * fontsize
101 return xdescent, ydescent, width, height
102
103 def legend_artist(self, legend, orig_handle,
104 fontsize, handlebox):

Callers 1

legend_artistMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected