Live Chat

We'll need to share your messages (and your email address if you're logged in) with our live chat provider, Drift. Here's their privacy policy.

If you don't want to do this, you can email us instead at

plotly.graph_objs.layout.newshape Module


plotly.graph_objs.layout.newshape.Line([color=], [width=], [dash=]) → Line

Create a new ‘Line’ object

  • color - Sets the line color. By default uses either dark grey or white to increase contrast with background color.

  • width - Sets the line width (in px).

  • dash - Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*).