6))plt.plot(x,y1,linestyle='dotted',label='dotted')plt.plot(x,y2,linestyle=':',label=':')plt.plot(x,y3,linestyle=(0,(1,1)),label='(0, (1, 1))')plt.title('Different Ways to Specify Dotted Lines - how2matplotlib.com')plt.legend()plt.show()...
From my knowledge, the draw_line and draw_lines graph elements do not have an option to draw a dash line. I think it would be convenient to have an option similar to Matplotlib. Something like this graph.draw_line((x1,y1),(x2,y2),width=3,color='red',linestyle='--') The code ...