Минимальный воспроизводимый пример:
import matplotlib.pyplot as plt
import numpy as np
zero_array = np.zeros((100, 100))
plt.imshow(zero_array, cmap='gray', vmin=0, vmax=100, interpolation='none')
# plt.axis('off')
plt.show()
Доказательство:


Дополнительная информация:
PyCharm 2024.3.1.1 (Professional Edition)
Build #PY-243.22562.220, built on December 18, 2024
Licensed to **********************
Subscription is active until ******************
For educational use only.
Runtime version: 21.0.5+8-b631.28 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 11.0
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 8192M
Cores: 24
Registry:
ide.experimental.ui=true
i18n.locale=
Non-Bundled Plugins:
com.chesterccw.excelreader (2024.11.1-243)
me.lensvol.blackconnect (0.6.2)
com.github.copilot (1.5.30-242)
Подробнее здесь: https://stackoverflow.com/questions/793 ... f-the-plot
Мобильная версия