擅长:python、mysql、java
<p>我认为目前还不能做到,<code>hexbin</code>转换x,y->;多边形集合的列表。<code>polyCollection</code>只是垂直、边缘和脸部颜色的列表,我不认为它包含任何关于它是如何生成的语义信息。在</p>
<p>最好的方法是用核弹摧毁旧的<code>hexbin</code>,然后用一个新的来代替它。在</p>
<p>如果您真的希望能够就地更新,要么使用一个正方形的2d直方图(这样您就可以使用<code>imshow</code>),要么修改{<cd1>}以返回补丁列表(而不是<code>polyCollection</code>),并跟踪自己的分块情况。在</p>