V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
toliho
V2EX  ›  问与答

matplotlib 如何绘制增长曲线?

  •  
  •   toliho · Feb 28, 2020 · 1542 views
    This topic created in 2254 days ago, the information mentioned may be changed or developed.

    RT,在下学了 2 天多,还是没有找到正确的 matplotlib 动图绘制方法,求教各位高人。 已知的方法有 sinx 的绘制,大概是这样。 xdata.append(x) ydata.append(np.sin(x)) ln.set_data(xdata, ydata) y =sinx 的对应关系是有函数的,如果是 x 轴时间,y 轴是疫情病人总数这样的呢? 是否用 xdata.append(x) ydata.append(xydict[x])? 怎么让 x、y 对应起来呢

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   838 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 22:12 · PVG 06:12 · LAX 15:12 · JFK 18:12
    ♥ Do have faith in what you're doing.