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

Method set_style

lib/matplotlib/font_manager.py:950–960  ·  view source on GitHub ↗

Set the font style. Parameters ---------- style : {'normal', 'italic', 'oblique'}, default: :rc:`font.style`

(self, style)

Source from the content-addressed store, hash-verified

948 self._family = tuple(family)
949
950 def set_style(self, style):
951 """
952 Set the font style.
953
954 Parameters
955 ----------
956 style : {'normal', 'italic', 'oblique'}, default: :rc:`font.style`
957 """
958 style = mpl._val_or_rc(style, 'font.style')
959 _api.check_in_list(['normal', 'italic', 'oblique'], style=style)
960 self._slant = style
961
962 def set_variant(self, variant):
963 """

Callers 4

__init__Method · 0.95
set_fontstyleMethod · 0.80
__init__Method · 0.80
_add_buttonMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected