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

Method set_fontsize

lib/matplotlib/offsetbox.py:1451–1459  ·  view source on GitHub ↗

Set the fontsize in points. If *s* is not given, reset to :rc:`legend.fontsize`.

(self, s=None)

Source from the content-addressed store, hash-verified

1449 martist.Artist.set_figure(self, fig)
1450
1451 def set_fontsize(self, s=None):
1452 """
1453 Set the fontsize in points.
1454
1455 If *s* is not given, reset to :rc:`legend.fontsize`.
1456 """
1457 s = mpl._val_or_rc(s, "legend.fontsize")
1458 self.prop = FontProperties(size=s)
1459 self.stale = True
1460
1461 def get_fontsize(self):
1462 """Return the fontsize in points."""

Callers 1

__init__Method · 0.95

Calls 1

FontPropertiesClass · 0.90

Tested by

no test coverage detected