How to draw vertical lines on a given plot in matplotlib

后端 未结 6 667
我寻月下人不归
我寻月下人不归 2020-11-28 18:27

Given a plot of signal in time representation, how to draw lines marking corresponding time index?

Specifically, given a signal plot with time index ranging from 0 t

6条回答
  •  猫巷女王i
    2020-11-28 19:25

    For multiple lines

    xposition = [0.3, 0.4, 0.45]
    for xc in xposition:
        plt.axvline(x=xc, color='k', linestyle='--')
    

提交回复
热议问题