def
plotly
cauldron.display.plotly()

Creates a Plotly plot in the display with the specified data and layout.

Arguments
Required
Optional
data

dict, list

The Plotly trace data to be plotted.

Default Value: 

None

layout

dict

The layout data used for the plot.

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.5

figure

dict

In cases where you need to create a figure instead of separate data and layout information, you can pass the figure here and leave the data and layout values as None.

Default Value: 

None

static

bool

If true, the plot will be created without interactivity. This is useful if you have a lot of plots in your notebook.

Default Value: 

False

Basic Usage
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
import cauldron as cd import plotly.graph_objs as go # Create a scatter plot scatter = go.Scatter( x=[1, 2, 3, 4, 5] y=[1, 4, 9, 16, 25] ) # Create a layout for the scatter plot layout = go.Layout( title='Quadratic Function y = x ** 2' ) # Add the plot to the notebook display cd.display.plotly(scatter, layout)
Examples