与 matplotlib.cm.get_cmap 存在潜在的兼容性问题 (与 Matplotlib 3.9.0 不兼容)

作者: xyf5432创建于 2026年2月14日更新于 2026年2月15日
  1. Suspected Crashes: Users whose environments happen to have matplotlib==3.9.0 installed are likely to face immediate AttributeError: module 'matplotlib.cm' has no attribute 'get_cmap' crashes.
  2. Future Incompatibility: As noted in the source code above, the API is scheduled for permanent removal in version 3.11.

Experimental Evidence

Our local testing confirms that matplotlib.cm.get_cmap was physically removed in Matplotlib 3.9.0, leading to an immediate crash.

内容来源: babysor/MockingBird