2D Colorplot python with missing values

Viewed 33

I have data in the following format:

x = [23.0757 23.8643 24.6545 25.4138 27.7498 28.5586 29.3396 30.079 30.8425 31.6162 32.3812]
y = [11.3574 11.1981 11.0303 10.8517 10.2982 10.1016 9.8989 9.7036 9.4833 9.2579 9.0362]
z = [15.1817 15.0578 13.9388 12.8876 13.0838 12.1634 10.6768 9.6899 9.712 9.8358 9.5188]

I would like to plot a 2D colorplot to replicate following picture (without the black lines and arrows):

enter image description here

I do want to keep the holes (if the x distance between two values is greater than 2, there should be a hole) in the picture and do not want to interpolate the data between them. I just managed to to a 2D plot of the x and y with z as colormap, but I do want to have a smooth surface with the color and not just the dots.

fig = plt.figure()
plt.scatter(x,y,s=80,c=z,cmap='jet') 
plt.colorbar()

enter image description here

Can somebody give me some tips on how to achieve this?

0 Answers
Related