3d surface on matplotlib abaqus(how to obtained data obtained along the paths plots)

i want to create 3d surface plot like shown below where one axes represent the stresses.....while other two axes reresent the distance along x direction and along z direction,,,,and 3rd axes represent the mises stresses.. for this approach i have created the path along the edge which selected all the elements lies with in the path.......and i plot xy data in which x is distance along x axes and y is the stress,,,,,and i plot the same plot by taking same path but choosing an option along z distance,,,,,,,hence i got 2 d data one is distance along path z(i dont know either itdistance along z or what ?) and stresses in y ..and i can extract the data and i can plot 3d surface in python matplot lib i dont know either is it the right way of doing this in order to get the 3d plot in matplot lib????????THe graph i want to plot should look like this