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

Method set_fontweight

lib/matplotlib/text.py:1322–1337  ·  view source on GitHub ↗

Set the font weight. Parameters ---------- weight : {a numeric value in range 0-1000, 'ultralight', 'light', \ 'normal', 'regular', 'book', 'medium', 'roman', 'semibold', 'demibold', \ 'demi', 'bold', 'heavy', 'extra bold', 'black'} See Also -------

(self, weight)

Source from the content-addressed store, hash-verified

1320 self._fontproperties.set_math_fontfamily(fontfamily)
1321
1322 def set_fontweight(self, weight):
1323 """
1324 Set the font weight.
1325
1326 Parameters
1327 ----------
1328 weight : {a numeric value in range 0-1000, 'ultralight', 'light', \
1329'normal', 'regular', 'book', 'medium', 'roman', 'semibold', 'demibold', \
1330'demi', 'bold', 'heavy', 'extra bold', 'black'}
1331
1332 See Also
1333 --------
1334 .font_manager.FontProperties.set_weight
1335 """
1336 self._fontproperties.set_weight(weight)
1337 self.stale = True
1338
1339 def set_fontstretch(self, stretch):
1340 """

Callers 3

clearMethod · 0.80
sankey_rankine.pyFile · 0.80
sankey_basics.pyFile · 0.80

Calls 1

set_weightMethod · 0.80

Tested by

no test coverage detected