MCPcopy Create free account
hub / github.com/ipython/ipython / figsize

Function figsize

IPython/core/pylabtools.py:86–94  ·  view source on GitHub ↗

Set the default figure size to be [sizex, sizey]. This is just an easy to remember, convenience wrapper that sets:: matplotlib.rcParams['figure.figsize'] = [sizex, sizey]

(sizex, sizey)

Source from the content-addressed store, hash-verified

84
85
86def figsize(sizex, sizey):
87 """Set the default figure size to be [sizex, sizey].
88
89 This is just an easy to remember, convenience wrapper that sets::
90
91 matplotlib.rcParams['figure.figsize'] = [sizex, sizey]
92 """
93 import matplotlib
94 matplotlib.rcParams['figure.figsize'] = [sizex, sizey]
95
96
97def print_figure(fig, fmt='png', bbox_inches='tight', **kwargs):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected