Skip to content

Tag: slider

Use slider to choose which graph to show

Suppose I want to show three simulations by reading three .xlsx files. Next, I want to design a slider to choose which simulation to show. If I move the slider to 0, then 0 will be the input to the function “update()”. The first simulation will be shown. The following is the code: If I move the sl…

How to update a histogram when a slider is used?

I want to build a histogram for the normal distribution and update the plot when the mean, standard deviation and sample size are changed; analogue to the post here. However, I struggle with the update function. In the example above and are used but how would this have to be changed when a histogram is plotte…