Skip to content
Plotly templates

Math — Plot: Cubic Function

The graph of y = x cubed.

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    {"type":"scatter","mode":"lines+markers","name":"y = x^3","line":{"color":"#0891b2","width":3},
     "x":[-3,-2.5,-2,-1.5,-1,-0.5,0,0.5,1,1.5,2,2.5,3],
     "y":[-27,-15.6,-8,-3.4,-1,-0.13,0,0.13,1,3.4,8,15.6,27]}
  ],
  "layout": {"title":"Cubic function","xaxis":{"title":"x"},"yaxis":{"title":"y"}}
}