figure¶
- mipylib.plotlib.miplot.figure(bgcolor=None, figsize=None, newfig=True)¶
Creates a figure.
- Parameters
bgcolor – (Color) Optional, background color of the figure. Default is
None
.figsize – (list) Optional, width and height of the figure such as
[600, 400]
. Default isNone
with changable size same as Figures window.newfig – (boolean) Optional, if creates a new figure. Default is
True
.
Examples:
figure() # Create a new figure figure(bgcolor='y') # Create a new figure with yellow background figure(figsize=[700,550], newfig=False) # Create/set a figure with width and height
- Notes:
The
width
andheight
arguments shoud not be given insavefig()
function iffigsize
arguments was given infigure()
function.