add dots to line matplotlib

Solutions on MaxInterview for add dots to line matplotlib by the best coders in the world

showing results for - "add dots to line matplotlib"
Roxane
04 Nov 2017
1#Python, matplotlib
2from matplotlib import pyplot as plt
3
4#Create the regular line graph with plt.plot, then add the marker argument.
5plt.plot(df["col1"], marker='o')
6
7#Example of a few markers:
8   -                solid line style
9   --               dashed line style
10   -.               dash-dot line style
11   :                dotted line style
12   .                point marker
13   ,                pixel marker
14   o                circle marker