# Interactive pulsar beam geometry¶

This is an interactive static page to learn how to use IPythons excellent interactive tools. Thanks to JakeVDP for the demonstration on how to do this.

## Pulsar beam geometry¶

This plot the beam-geometry and slices thorugh the beam which correspond to an observer seeing a single "pulse". The basic idea is that the intensity has a function

$$ I \sim \exp\left[ -\frac{y^2}{2(\lambda\rho_2^0)^2} - -\frac{x^2}{2(\rho_2^0 + \rho_2'' y^2)^2}\right] $$which is a 2D-Gaussian with some modification to allow for a non-Gaussian beam. The free parameters are the scale factor $\lambda$ in the longitudinal variance, and the $\rho_2''$.

Here is an interactive figure which shows

- On the left: the beam geometry as viewed on the surface of the star
- On the right: single pulses taken at various points of the observers relative motion (the horizontal lines in the left plot).

In [3]:

```
StaticInteract(plot,
factor=RangeWidget(0.5, 2.0, 0.25, default=1),
rho2dd=RangeWidget(0, 8, 1, default=4)
)
```

Out[3]: