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 is None with changable size same as Figures window.
newfig – (boolean) Optional, if creates a new figure. Default is True .
Examples:
figure()# Create a new figurefigure(bgcolor='y')# Create a new figure with yellow backgroundfigure(figsize=[700,550],newfig=False)# Create/set a figure with width and height
Notes:
The width and height arguments shoud not be given in savefig() function
if figsize arguments was given in figure() function.