[Matplotlib-users] Setting dash size and gap of dashed line in matplotlib

2010-01-30 Thread per freem
hi all, I am plotting certain dashed lines in matplotlib, using: plt.plot(x, y, '--') I'd like to set the dash size (i.e. length of each dash) and the gap between the dashes of the plotted line. Is there a way to set this from matplotlib? thanks.

Re: [Matplotlib-users] Setting dash size and gap of dashed line in matplotlib

2010-01-30 Thread Eric Firing
per freem wrote: hi all, I am plotting certain dashed lines in matplotlib, using: plt.plot(x, y, '--') I'd like to set the dash size (i.e. length of each dash) and the gap between the dashes of the plotted line. Is there a way to set this from matplotlib? plt.plot([0,1], [2,3], '--',