Plot according to the content of the dimensions and not the indices

Hello again,

My problem is that my z axis is like that (0, 1, 4, 16 …) so it is not composed of regularely spaced points.
I want to plot my data in 3D but according to the coordinates of the z dimensions not according to indices as is done by default because my points should not be regularely spaced.

Anyone knows how to do that?
(I didn’t find any answer on the web, maybe it is because I can’t formulate the question.)

I refresh my topic as I didn’t find the solution yet.

I found the solution reading the CF conventions.
http://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/cf-conventions.html#latitude-coordinate