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

Method set_fontstretch

lib/matplotlib/text.py:1339–1354  ·  view source on GitHub ↗

Set the font stretch (horizontal condensation or expansion). Parameters ---------- stretch : {a numeric value in range 0-1000, 'ultra-condensed', \ 'extra-condensed', 'condensed', 'semi-condensed', 'normal', 'semi-expanded', \ 'expanded', 'extra-expanded', 'ultra-ex

(self, stretch)

Source from the content-addressed store, hash-verified

1337 self.stale = True
1338
1339 def set_fontstretch(self, stretch):
1340 """
1341 Set the font stretch (horizontal condensation or expansion).
1342
1343 Parameters
1344 ----------
1345 stretch : {a numeric value in range 0-1000, 'ultra-condensed', \
1346'extra-condensed', 'condensed', 'semi-condensed', 'normal', 'semi-expanded', \
1347'expanded', 'extra-expanded', 'ultra-expanded'}
1348
1349 See Also
1350 --------
1351 .font_manager.FontProperties.set_stretch
1352 """
1353 self._fontproperties.set_stretch(stretch)
1354 self.stale = True
1355
1356 def set_position(self, xy):
1357 """

Callers

nothing calls this directly

Calls 1

set_stretchMethod · 0.80

Tested by

no test coverage detected