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

Method set_fontsize

lib/matplotlib/text.py:1270–1286  ·  view source on GitHub ↗

Set the font size. Parameters ---------- fontsize : float or {'xx-small', 'x-small', 'small', 'medium', \ 'large', 'x-large', 'xx-large'} If a float, the fontsize in points. The string values denote sizes relative to the default font size.

(self, fontsize)

Source from the content-addressed store, hash-verified

1268 self.stale = True
1269
1270 def set_fontsize(self, fontsize):
1271 """
1272 Set the font size.
1273
1274 Parameters
1275 ----------
1276 fontsize : float or {'xx-small', 'x-small', 'small', 'medium', \
1277'large', 'x-large', 'xx-large'}
1278 If a float, the fontsize in points. The string values denote sizes
1279 relative to the default font size.
1280
1281 See Also
1282 --------
1283 .font_manager.FontProperties.set_size
1284 """
1285 self._fontproperties.set_size(fontsize)
1286 self.stale = True
1287
1288 def get_math_fontfamily(self):
1289 """

Callers 4

clearMethod · 0.45
test_auto_columnFunction · 0.45
sankey_rankine.pyFile · 0.45
line_with_text.pyFile · 0.45

Calls 1

set_sizeMethod · 0.45

Tested by 1

test_auto_columnFunction · 0.36