从某个点绘制图形

2024-09-26 21:50:41 发布

您现在位置:Python中文网/ 问答频道 /正文

我有以下代码(部分代码)

    phiCrit = 0.2*np.max(phiPart_t)
    time=[freqMeas * (x+1) for x in range(startFile,endFile+1,step)]
    SigUpper = np.zeros(Nt)
    SigLower = np.zeros(Nt)
    gammaDot_upper = np.zeros(Nt)
    gammaDot_lower = np.zeros(Nt)
    for k in range(0,Nt):
        charline = np.where(phiPart_t[:,k]>phiCrit)
        SigUpper[k] = Sig[np.max(charline)]
        SigLower[k] = Sig[np.min(charline)]
        gammaDot_upper[k]= gammaDot_t[np.max(charline),k]
        gammaDot_lower[k]=gammaDot_t[np.min(charline),k]
    plt.figure(7)
    plt.plot(time,np.abs(gammaDot_upper))
    plt.plot(time,np.abs(gammaDot_lower))
    #plt.yscale('log')
    plt.xscale('log')
    plt.grid()

我得到了这个数字,我需要从100开始画x轴值,而x轴代表时间

figure link


Tags: 代码infortimenpzerospltupper

热门问题