matplotlib plot dots with line on axis code example Example: python plot lines with dots plt.plot(range(10), linestyle='--', marker='o', color='b')