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

Method set_fontvariant

lib/matplotlib/text.py:1240–1253  ·  view source on GitHub ↗

Set the font variant. Parameters ---------- variant : {'normal', 'small-caps'} See Also -------- .font_manager.FontProperties.set_variant

(self, variant)

Source from the content-addressed store, hash-verified

1238 self.stale = True
1239
1240 def set_fontvariant(self, variant):
1241 """
1242 Set the font variant.
1243
1244 Parameters
1245 ----------
1246 variant : {'normal', 'small-caps'}
1247
1248 See Also
1249 --------
1250 .font_manager.FontProperties.set_variant
1251 """
1252 self._fontproperties.set_variant(variant)
1253 self.stale = True
1254
1255 def set_fontstyle(self, fontstyle):
1256 """

Callers

nothing calls this directly

Calls 1

set_variantMethod · 0.80

Tested by

no test coverage detected