python - dot dashed line touch yaxis min and max in matplotlib -
is there way vertical dot-dashed line in matplotlib touch top , bottom of yaxis? drawing 2 vertical lines, space between them, , want them touch top , bottom of yaxis. touch bottom of yaxis, touch top of yaxis of plot if change starting y-value linestyle pattern happens touch @ top. tried using ax.vlines , got same result.
maybe - there way change spacing of dot , dash in linestyle in order this?
plt.plot((55843.8747516981, 55843.8747516981), (yminplot, 4.53), linewidth=2, linestyle='-.', color='r') plt.plot((55843.8747516981, 55843.8747516981), (7.03, ymaxplot), linewidth=2, linestyle='-.', color='r')
if understand correctly question, can solve changing order of how second line drawn, drawn top bottom
plt.plot((55843.8747516981, 55843.8747516981), (yminplot, 4.53), linewidth=2, linestyle='-.', color='r') plt.plot((55843.8747516981, 55843.8747516981), (ymaxplot, 7.03), linewidth=2, linestyle='-.', color='r')
Comments
Post a Comment