Here is my code and it works well:
{Slider[Dynamic[a], {-5, 5}], Dynamic[a]}
{Slider[Dynamic[b], {-5, 5}], Dynamic[b]}
Dynamic[Plot[Evaluate[y /. Solve[x^2 + y^2 == 25, y]], {x, a, b},
AspectRatio -> Automatic, PlotRange -> {{-20, 20}, {-20, 20}},
PlotLegends -> "Expressions"]]
after moving sliders output like:
So first slider (a
variable) shows start value on the x
axis, and second slider (b
) shows end value on x
axis. Now I need also to display dynamically start and end values of y
axis outside of the plot (it maybe separate cell with Dynamic[]
). How Can I add it? Please provide solution with Dynamic[]
and not Manipulate[]
.
PlotRange
option get you what you want? A dynamically resizing plot. $\endgroup$