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

Method set_figwidth

lib/matplotlib/figure.py:3219–3234  ·  view source on GitHub ↗

Set the width of the figure in inches. Parameters ---------- val : float forward : bool See `set_size_inches`. See Also -------- matplotlib.figure.Figure.set_figheight matplotlib.figure.Figure.set_size_inches

(self, val, forward=True)

Source from the content-addressed store, hash-verified

3217 self.stale = True
3218
3219 def set_figwidth(self, val, forward=True):
3220 """
3221 Set the width of the figure in inches.
3222
3223 Parameters
3224 ----------
3225 val : float
3226 forward : bool
3227 See `set_size_inches`.
3228
3229 See Also
3230 --------
3231 matplotlib.figure.Figure.set_figheight
3232 matplotlib.figure.Figure.set_size_inches
3233 """
3234 self.set_size_inches(val, self.get_figheight(), forward=forward)
3235
3236 def set_figheight(self, val, forward=True):
3237 """

Calls 2

set_size_inchesMethod · 0.95
get_figheightMethod · 0.95