
import matplotlib
matplotlib.use("TkAgg")
import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(6, 8), facecolor="black", dpi=100)
ax.set_xlim(0, 2)
ax.set_ylim(0, 2)
ax.set_aspect("equal", adjustable="datalim")
plt.axis("off")
plt.subplots_adjust(left=0, right=1, top=1, bottom=0)
plt.show()
Подробнее здесь: https://stackoverflow.com/questions/792 ... oordinates
Мобильная версия