Skip to content
Plotly templates

Engineering — Plot: Comparing Materials

Stress–strain of steel vs aluminium.

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    {"type":"scatter","mode":"lines","name":"steel","line":{"color":"#475569","width":3},
     "x":[0,0.005,0.01,0.02,0.03,0.04],"y":[0,400,500,550,560,520]},
    {"type":"scatter","mode":"lines","name":"aluminium","line":{"color":"#0ea5e9","width":3},
     "x":[0,0.005,0.01,0.02,0.03,0.04],"y":[0,150,250,300,310,290]}
  ],
  "layout": {"title":"Steel vs aluminium","xaxis":{"title":"strain"},"yaxis":{"title":"stress (MPa)"}}
}