How to make the points on a graph equispaced?
x = Table[{ξ, ξ^4}, {ξ, 0, 1, 0.01}];
Δx = Differences[x];
Δl = Norm[#] & /@ Δx[[ ;; ]];
s = Flatten@{0, Accumulate[Δl]};
l = s[[-1]];
xint = {Interpolation[{s, x\[Transpose][[1]]}\[Transpose]],
Interpolation[{s, x\[Transpose][[2]]}\[Transpose]]};
Show[
ListLinePlot[x],
ListPlot[{xint[[1]][#], xint[[2]][#]} & /@
Table[ξ, {ξ, 0, l, l/10}]],
AspectRatio -> 1/GoldenRatio, Frame -> True, PlotRangePadding -> 0
]
With the above code I'm considering just equispaced points in the "geometric" space, but in the graph they are not, since I should include the contribution of the axis and the aspect ratio in the sampling.
Does anyone faced this problem before?




Norm[#]to whatever distance metric you need, (Norm[# {GoldenRatio,1}]perhaps ) – george2079 Aug 24 '16 at 19:38