I have a large dataset from which I derive a squared matrix I would like to visualize as a heatmap. I'm using Matplotlib and Seaborn. Unfortunately, it seems to work only for a relatively small amount of data.
size = 10000
similarity_matrix = np.random.rand(size, size)
fig, ax = plt.subplots()
sns.heatmap(similarity_matrix, vmin=0, vmax=1)
plt.savefig("matrix.png")
This stops working from approximately size=6000, resulting in a white heatmap.


