'Heatmap? Contour plot? with (X,Y,Z) data with Z for coloring in python

I have 3D data (X, Y, Z) and I want to use Z as coloring on 2D map or just make a 3d surface plot.

my data looks like this but much more data points.

X = [0.2, -1.78, -3.82, -1.34]
Y = [9.18, 9.87, 7.75, 9.38]
Z = [6.85, 7.51, 7.32, 6.98]
df_qp = pd.DataFrame(list(zip(X,Y,Z)), columns = ['PC1', 'PC2', 'QP'])

I tried with 'scatter plot' like the figures below,

enter image description here enter image description here enter image description here

But, I want to visualize my data like this, Can someone help me solve this problem? Thanks. enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source