Plot.plot({
height: 700,
marginTop: 30,
marginRight: 40,
marginBottom: 40,
marginLeft: 40,
color: {legend: true},
style: {
fontSize: 12
},
y: {type: "log", domain: [1050, 100], label: "pressure (hPa)", labelArrow: false, labelOffset: 0},
x: {type: "linear", domain: [-40, 30], label: "Temperature", labelAnchor: "center", labelArrow: false},
clip: true,
marks: [
Plot.frame({ stroke: 'currentColor', fill: 'rgb(223, 223, 223)'}),
Plot.gridY( { stroke: 'white', strokeWidth: 1, strokeOpacity: 1, strokeDasharray: [4, 2]}),
Plot.line(isoTherms, { x: 'x', y: 'y', z: "label", stroke: 'white', strokeWidth: 1, strokeDasharray:[4,2]} ),
Plot.line(dryAdiabatics, { x: 'xS', y: 'y', z: "label", stroke: 'white', curve: "monotone-y", strokeWidth: .5} ),
Plot.lineX(skewtSounding, {x: "skewedTemperature", y: "pressure", stroke: 'red'}),
Plot.lineX(skewtSounding, {x: "skewedDewPoint", y: "pressure", stroke: 'green'}),
Plot.dot(skewtSounding, Plot.pointerY({x: "skewedTemperature", y: "pressure", stroke: 'red'})),
Plot.dot(skewtSounding, Plot.pointerY({x: "skewedDewPoint", y: "pressure", stroke: 'green'})),
Plot.crosshairY(skewtSounding, {x: "skewedTemperature", y: "pressure"}),
Plot.crosshairY(skewtSounding, {x: "skewedDewPoint", y: "pressure"}),
]
})