2

For example using some code like this one:

fig.add_scatter(x=x, y=y, mode='lines', line=dict(dash='dot'))

The possibilities I know of are 'lines', 'dash', 'dot' and 'dashdot'. I was looking for another way to differentiate a new plot using this option, like "spaced dots" for example. Unfortunately I couldn't find anything where I looked (basically web searches and plotly line chart documentation). Is there any other possible value for this argument or is that all there is?

user130819
  • 61
  • 1
  • 6

1 Answers1

4

When I put an invalid value to the 'dash' property, plotly shows an error message that list all the admissible values:

The 'dash' property is an enumeration that may be specified as:

 - One of the following dash styles:
   ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']

  • A string containing a dash length list in pixels or percentages

    (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.)
    

This answers my question entirely.

user130819
  • 61
  • 1
  • 6