I want to display a value on a fixed range say [0,2].
NumberLinePlot[.2, {x, 0, 2}]
NumberLinePlot[1.9, {x, 0, 2}]
Mathematica tries to guess the best range to display, so it zooms in on [0,1] for the small value and zooms out to [0,4] for the large one, which is natural.
To freeze the range displayed, I tried adding various option even though they are not listed as a possible option in the documentation. The result is ... unexpected as PlotRange shrinks to [0,1], PlotRegion zooms out to [0,4]
and RegionFunction is not accepted:
NumberLinePlot[1.9, {x, 0, 2}, PlotRange -> {0, 2}]
NumberLinePlot[1.9, {x, 0, 2}, PlotRegion -> {0, 2}]
Any idea on how to impose the range to [0,2] ? My ultimate goal is to make a dynamic slider but with a range that does not jumps around when x changes which is currently the case if I try :
Manipulate[NumberLinePlot[x], {x, 0, 2}]
Thanks.
PS. I am using Mathematica 11.3 on MacOS 10.13.4.







Show[NumberLinePlot[1.9, {x, 0, 2}], PlotRange->{{0,2},All}]work? $\endgroup$PlotRangeoption toShowas in @kglr answer below. I will validate this one but I am glad to know they might fix the bug in the next version. $\endgroup$