I have a function that produces a matplotlib map. I then want to overlay a seaborn heat map on top of this map, and have both maps exactly the same size on top of each other, while being able to see the details of both maps. Is it possible? Please see my code below.
def draw_map():
fig=plt.figure()
fig.set_size_inches(14.5, 8.8)
ax=fig.add_subplot(1,1,1)
#Map Outline & Centre Line
plt.plot([0,0],[0,88], color="black")
plt.plot([0,145],[88,88], color="black")
plt.plot([145,145],[88,0], color="black")
plt.plot([145,0],[0,0], color="black")
ly97 = [39,49]
lx97 = [72.5,72.5]
plt.plot(lx97,ly97,color="black")
seaborn.heatmap(data)
plt.ylim(0, 88)
plt.xlim(0, 145)
#Display Map
plt.show()
For some reason the seaborn heatmap appears tiny in comparison to the matplotlib map. The data in the seaborn heatmap contains values between 0 and 1 only, if this helps. Thanks in advance.
