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 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 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 and height arguments shoud not be given in savefig() function if figsize arguments was given in figure() function.