Consider the following plot
n := 1
f[x_] := {Tanh[x], Tanh[x^2], Tanh[3 x]};
DiscretePlot[Evaluate[f[x]], {x, -2 Pi, 2 Pi, n}, PlotRange -> All,
Filling -> None, PlotMarkers -> {{"*", 25}, {"@", 10}, {"$", 15}},
PlotLegends -> "Expressions", Frame -> True, Joined -> True]
I want two changes.
Joined -> Trueis replaced by continuous curve (the plot should be smooth).- Since the Codomain is $y\in(-1,1)$, i need to divide the interval into n-subdivision based on the codomain (not the domain). So, for example if $n=2$, there will be three marks that divide the range of the codomain into $3$ equal parts.
Here is the illustration that might help to understand, this illustration below isn't the same as the original plot for simplification purpose:
Notice there are ($=$) symbols to indicate that the range of the codomain is divided into n-equal parts correspond to the marks of the graph.
My attempt is combining plot and discrete plot with show, but still have no idea about dividing the range of the codomain.
n := 20
f[x_] := {Tanh[x], Tanh[x^2], Tanh[3 x]};
Show[DiscretePlot[Evaluate[f[x]], {x, -2 Pi, 2 Pi, n},
PlotRange -> All, Filling -> None,
PlotMarkers -> {{"*", 25}, {"@", 10}, {"$", 15}},
PlotLegends -> "Expressions", Frame -> True],
Plot[{Tanh[x], Tanh[x^2], Tanh[3 x]}, {x, -2 Pi, 2 Pi}]]
Reference:





