ploting acording to axial height in 3D

Dear Expert,
I want to know how can I get the line plot over the axial distance each having 0.05 m (total length is 1 m) in the 3D geometry. while I have a data set of 20 sec in which the condition time average data set is 5-20 sec.
in the 2D case, i use this way to get data. could you let me know how can i plot in 3D case?

Dear Expert,
Please look it