我正在尝试在 Conda 环境中的 WSL 上运行 matplotlib.pyplot,但是在开始时我的 pyplot 窗口会发生一些奇怪的事情,有一些奇怪的线条(有时会在悬停时隐藏)。
WSL 版本:
WSL version: 2.0.14.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22631.3155
Conda 版本(matplotlib 和 python):
matplotlib 3.8.0 py311h06a4308_0
matplotlib-base 3.8.0 py311ha02d727_0
matplotlib-inline 0.1.6 pyhd8ed1ab_0 conda-forge
python 3.11.7 h955ad1f_0
注意到绘图窗口包含“[警告:复制模式]”,因此搜索了此问题的答案,并通过更新台面解决了它,如下所示:
sudo add-apt-repository ppa:kisak/kisak-mesa
。
onomatopellan的道具。