plot line that goes into dots in plt code example Example: python plot lines with dots plt.plot(range(10), linestyle='--', marker='o', color='b')