def
pyplot
cauldron.display.pyplot()

Creates a matplotlib plot in the display for the specified figure. The size of the plot is determined automatically to best fit the notebook.

Arguments
Required
Optional
figure

Any

The matplotlib figure to plot. If omitted, the currently active figure will be used.

Default Value: 

None

scale

float

The display scale with units of fractional screen height. A value of 0.5 constrains the output to a maximum height equal to half the height of browser window when viewed. Values below 1.0 are usually recommended so the entire output can be viewed without scrolling.

Default Value: 

0.8

clear

bool

Clears the figure after it has been rendered. This is useful to prevent persisting old plot data between repeated runs of the project files. This can be disabled if the plot is going to be used later in the project files.

Default Value: 

True

aspect_ratio

list, tuple

The aspect ratio for the displayed plot as a two-element list or tuple. The first element is the width and the second element the height. The units are "inches," which is an important consideration for the display of text within the figure. If no aspect ratio is specified, the currently assigned values to the plot will be used instead.

Default Value: 

None