✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
📊 Dash 2.0 is Arriving. Register here.

Represent 4 dimensions data

hello everyone,
this is my new topic here.
I have three variables (x,y,z) and another variable f(x,y,z). x,y, and z take the values from 0 to 19, and for each value of (x,y,z) I have a value for f(x,y,z). which means 20 values for x, y, and z. But f has 20x20x20=8000 values.
I want to represent the data like the following figure using python.
4d

best regards

this is a part of the data

# iX , iY , iZ , total(value) [MeV]
0 , 0 , 0 , 0.7186750606557863
0 , 0 , 1 , 0.1816545219749217
0 , 0 , 2 , 0.1325766227290934
0 , 0 , 3 , 0.148513111388832
0 , 0 , 4 , 0.1215885009152961
0 , 0 , 5 , 0.2159501472892012
0 , 0 , 6 , 0.04605873415965471
0 , 0 , 7 , 0.1356269218857206
0 , 0 , 8 , 0.257822547019855
0 , 0 , 9 , 0.1914359947246274
0 , 0 , 10 , 0.2325336254052311
0 , 0 , 11 , 0.2053227931342235
0 , 0 , 12 , 0.2090946039028279
0 , 0 , 13 , 0.3491765529107006
0 , 0 , 14 , 0.1214783354308278
0 , 0 , 15 , 0.1715156020994479
0 , 0 , 16 , 0.3727796332918811
0 , 0 , 17 , 0.3290024642878383
0 , 0 , 18 , 0.1980557215900901
0 , 0 , 19 , 0.6611507752039599

as a very simple test I want to represent the following data:
x,y,z,f
0,0,0,5.2
0,0,1,1.2
0,1,0,6.2
0,1,1,7.8
1,0,1,2.2
1,1,0,3.1
1,1,1,8

Try this: https://plotly.com/python/3d-mesh/