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

Method get_sized_alternatives_for_symbol

lib/matplotlib/_mathtext.py:335–343  ·  view source on GitHub ↗

Override if your font provides multiple sizes of the same symbol. Should return a list of symbols matching *sym* in various sizes. The expression renderer will select the most appropriate size for a given situation from this list.

(self, fontname: str,
                                          sym: str)

Source from the content-addressed store, hash-verified

333 raise NotImplementedError()
334
335 def get_sized_alternatives_for_symbol(self, fontname: str,
336 sym: str) -> list[tuple[str, str]]:
337 """
338 Override if your font provides multiple sizes of the same
339 symbol. Should return a list of symbols matching *sym* in
340 various sizes. The expression renderer will select the most
341 appropriate size for a given situation from this list.
342 """
343 return [(fontname, sym)]
344
345 def get_font_constants(self) -> type[FontConstantsBase]:
346 return FontConstantsBase

Callers 3

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected