Extending mainpage example

I guess there's currently no way to write the code so that the user doesn't have to know that `x` corresponds to `positions[:, 0]` and `y` to `positions[:, 1]`? ... this example will become simpler when we use tables.