how do I plot a scatter plot of points respectively to the index and columns of a dataframe called OVS over a sns heatmap of another dataframe EVS, wich is a interpolated surface based on OVS values
plt.figure(figsize = (10,5))
sns.heatmap(EVS, cmap = 'coolwarm', cbar = True, yticklabels = 15, xticklabels = 20)
for i, col in enumerate(OVS.columns):
for j, index in enumerate(OVS.index):
plt.scatter(i,j, s = 10, c = 'yellow')
plt.show()
enter image description here
I tried using normal scatter solution, and even the sns option, but the axis simply doesn’t mathc! Every value of OVS index and columns is contained within EVS index and columns… I simply don’t understand…
New contributor
user25418232 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.