I am plotting this piecewise function:
$$\rho (x,0) = \rho_{max} \text{ if } x \leq 0 $$ $$\rho (x,0) = 0 \text{ if } x>0. $$
I used this code
Plot[Piecewise[{{pmax, x <= 0}, {0, x > 0}}], {x, -2000, 2000},
Axes -> True, AxesLabel -> {"x", "\[Rho]"},
Ticks -> {{0}, {{2000, "pmax"}}}, PlotStyle -> Thickness[0.01]]
and I get this:
Is it possible to move the tick label $\rho_{max}$ to the right?
Ticks
inPlot
. $\endgroup$pmax = 2000
? $\endgroup$