I created a Seaborn heatmap (of certain positions and their values) and would like to transform the heatmap shown below into something similar as the circular heatmap you see in the pictures (click on the "enter image description here" links I uploaded them in a weird way). My current code for the regular heatmap looks like this:
X = [i for i in range(100)]
positions = [i for i in permutations(X,2)]
positions += [(i,i) for i in range(100)]
APC = np.array([placeCells(i) for i in positions])
crit = [np.dot(CriticWeights.T, APC[i]) for i in range(len(positions))]
xx,yy = zip(*positions)
flatX = [item for item in list(xx)]
flatY = [item for item in list(yy)]
df = pd.DataFrame({"X": flatX, "Y": flatY, "V": crit})
df = df.astype('float')
Heatmap = df.pivot(index="X", columns="Y", values='V')
sn.heatmap(Heatmap, linewidths = 1, linecolor = "black")
plt.show()
enter image description here enter image description here
I only found code on how to insert a circular heatmap into a plot but not how to transform the whole heatmap. Thanks in advance!