Skip to content
Plotly templates

Physics — Plot: P–V Isotherms

Boyle's law isotherms at two temperatures.

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    {"type":"scatter","mode":"lines","name":"lower T","line":{"color":"#6366f1","width":3},
     "x":[1,2,3,4,5,6],"y":[24,12,8,6,4.8,4]},
    {"type":"scatter","mode":"lines","name":"higher T","line":{"color":"#dc2626","width":3},
     "x":[1,2,3,4,5,6],"y":[48,24,16,12,9.6,8]}
  ],
  "layout": {"title":"P-V isotherms","xaxis":{"title":"volume"},"yaxis":{"title":"pressure"}}
}