plotDF is as follows:
i have managed to produce my intended seaborn heatmap plot using:
fig, ax = plt.subplots(figsize=(20,10))
ax=sns.heatmap(plotDF,vmin=-0.15, vmax=1,cmap='YlGnBu')
i am now trying to add a line plot on a second y axis but when doing so it is not overlaying the x-axis correctly. I am using the following code and getting the outcome below:
fig, ax = plt.subplots(figsize=(20,10))
ax=sns.heatmap(plotDF,vmin=-0.15, vmax=1,cmap='YlGnBu')
ax2=plt.twinx()
sns.lineplot(data=plots['SPX'],ax=ax2,linewidth=1)
ax.axis('tight')
appreciate any help available. I have been trying various similar solutions for the last few hours. Thanks in advance.