Improve axes and tick behaviour, add surrounding axes.

Ticks are calculated more robustly.
Axes now surround the plot, rather than being only at the bottom and
left.
Improve zoom button positioning.

New surrounding axes were covered by old button positioning.
2d histograms added