History, asked by vishveshwardeshpande, 1 month ago

enumerate different line styles in matplotib with examples​

Answers

Answered by starlightdazzle
6

Answer:

• The default linestyle while plotting data is solid linestyle in matplotlib. We can change this linestyle by using linestyle or ls argument of plot() method.

• Following are the linestyles available in matplotlib:

Using linestyle Argument:

• Solid

• Dashed

• Dotted

• Dashdot

• None

•Using ls Argument:

• ‘-‘

• ‘:’

• ‘–‘

• ‘-.’

• ‘ ‘

•Step-by-step Approach:-

Import module.

Create data.

Normally plot the data by setting linestyle or ls argument of plot() method.

Similar questions