Initial commit

This commit is contained in:
2026-04-06 15:59:23 +02:00
commit 60e9dfa5ad
83 changed files with 2167 additions and 0 deletions
Binary file not shown.
+10
View File
@@ -0,0 +1,10 @@
def force_aspect(ax, aspect=1):
im = ax.get_images()
extent = im[0].get_extent()
ax.set_aspect(abs((extent[1]-extent[0])/(extent[3]-extent[2]))/aspect)
def mpl_matshow(ax, data, shape):
ax.matshow(data.reshape(shape, shape), cmap='hot', aspect='auto')
ax.set_xticks([])
ax.set_yticks([])
force_aspect(ax)