As I said before for the time being, I don't want to use `Mathematica` as a programming tool. I'm just using it as a calculater to compute integrals, solve equations, etc because of its support of symbolic math.  

So my question is not about [adding zooming and panning capability to your code](https://mathematica.stackexchange.com/search?q=zoom) 

As you know in 3D graphics (as far as I know graphics that are created by Plot3D function) we can use: 

* Click + Drag ---> Rotate
* Alt + Click + Drag ---> Zoom in and out
* Shift+Click+Drag ---> Pan

but for 2D graphics (as far as I know graphics that are created by Plot function) we don't have such capability. 

I searched a bit on the net and in this site and found out that there are no built in plot manipulating interface in mathematica and I should use [this code](https://mathematica.stackexchange.com/a/7144/30689) to be able to pan and zoom on 2D plots that I have created in notebook.  

**But I don't know how to use a certain piece of code and call a function in mathematica.** I'm just starting to learn, so please pardon me if it's so trivial. 

For example suppose that I have created this plot and now I want to be able to pan and zoom on it. **What should I do?** 

```
Manipulate[
 Plot[PDF[VonMisesDistribution[μ, κ], x], {x, -Pi + μ, 
   Pi + μ}, PlotRange -> {{-5, 5}, {0, 20}}], {{μ, 0}, -5, 
  5}, {{κ, 5}, 0, 1000}]

```