Let's say we have a contour plot of the following,
ContourPlot[Cos[x] + Cos[y], {x, 0, Pi}, {y, 0, Pi},
ContourLabels -> True]
that gives,
we can extract the line objects and points associated with those lines as
Cases[Normal@%, Line[pts_] -> pts, Infinity]
ListLinePlot@%
which looks like in the following,
so, is there any way I can replace the line points, which are infact z slices with a user-defined function Sin[z]? so it will be Sin[-1.5],Sin[-1] and so on
and plot the contour plot again.
so extraction of data from the contour plot and changing it with a user-defined function
z
the contourvalue? $\endgroup$