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

Method set_linespacing

lib/matplotlib/text.py:1161–1177  ·  view source on GitHub ↗

Set the line spacing. Parameters ---------- spacing : 'normal' or float, default: 'normal' If 'normal', then the line spacing is automatically determined by font metrics for each line individually. If a float, then line spacing w

(self, spacing)

Source from the content-addressed store, hash-verified

1159 self.stale = True
1160
1161 def set_linespacing(self, spacing):
1162 """
1163 Set the line spacing.
1164
1165 Parameters
1166 ----------
1167 spacing : 'normal' or float, default: 'normal'
1168 If 'normal', then the line spacing is automatically determined by font
1169 metrics for each line individually.
1170
1171 If a float, then line spacing will be fixed to this multiple of the font
1172 size for every line.
1173 """
1174 if not cbook._str_equal(spacing, 'normal'):
1175 _api.check_isinstance(Real, spacing=spacing)
1176 self._linespacing = spacing
1177 self.stale = True
1178
1179 def get_linespacing(self):
1180 """Get the line spacing."""

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected