擅长:python、mysql、java
<p>您可以使用<code>pd.DataFrame.plot</code>来处理其中的大部分</p>
<pre><code>df = pd.DataFrame(dict(
y1=y1, y2=y2
), index=x)
df.plot()
</code></pre>
<p><a href="https://i.stack.imgur.com/CHeTN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CHeTN.png" alt="enter image description here"/></a></p>