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

Method create_artists

lib/matplotlib/legend_handler.py:140–163  ·  view source on GitHub ↗

Return the legend artists generated. Parameters ---------- legend : `~matplotlib.legend.Legend` The legend for which these legend artists are being created. orig_handle : `~matplotlib.artist.Artist` or similar The object for which the

(self, legend, orig_handle,
                       xdescent, ydescent, width, height, fontsize,
                       trans)

Source from the content-addressed store, hash-verified

138 return artists[0]
139
140 def create_artists(self, legend, orig_handle,
141 xdescent, ydescent, width, height, fontsize,
142 trans):
143 """
144 Return the legend artists generated.
145
146 Parameters
147 ----------
148 legend : `~matplotlib.legend.Legend`
149 The legend for which these legend artists are being created.
150 orig_handle : `~matplotlib.artist.Artist` or similar
151 The object for which these legend artists are being created.
152 xdescent, ydescent, width, height : int
153 The rectangle (*xdescent*, *ydescent*, *width*, *height*) that the
154 legend artists being created should fit within.
155 fontsize : int
156 The fontsize in pixels. The legend artists being created should
157 be scaled according to the given fontsize.
158 trans : `~matplotlib.transforms.Transform`
159 The transform that is applied to the legend artists being created.
160 Typically from unit coordinates in the handler box to screen
161 coordinates.
162 """
163 raise NotImplementedError('Derived must override')
164
165
166class HandlerNpoints(HandlerBase):

Callers 2

legend_artistMethod · 0.95
create_artistsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected