ZhaJiMan / frykit

A simple toolbox for drawing china map in Python
BSD 3-Clause "New" or "Revised" License
70 stars 14 forks source link

clip_by_cn_border #1

Closed Aqi-MH13 closed 1 year ago

Aqi-MH13 commented 1 year ago

使用clip_by_cn_border()会出现draw_artist can only be used after an initial draw which caches the renderer,是什么原因呢

ZhaJiMan commented 1 year ago

能展示一下完整的代码,matplotlib 和 cartopy 的版本吗?

Aqi-MH13 commented 1 year ago

运行的代码是您的contourf.py matplotlib=3.4.3 cartopy=0.20.0

ZhaJiMan commented 1 year ago

当 Matplotlib < 3.6.0 时就会出现这个问题,我按问题更新了一下包,你可以 pip install frykit=0.2.1 试试

Aqi-MH13 commented 1 year ago

谢谢作者,问题已经解决了,工具包非常好用,祝越来越好!!!!