擅长:python、mysql、java
<p>fI无法重现您的确切错误,但我认为您不需要在<code>p2</code>后面加逗号,因为<code>scatter</code>只返回一个值。更改后,除了<code>p2</code>是没有<code>get_color</code>方法的<a href="http://matplotlib.sourceforge.net/api/collections_api.html" rel="nofollow">^{<cd4>}</a>之外,您的代码对我有效。您需要将其更改为<code>p2.get_facecolor()</code>或其他内容。</p>