Add label helpers, add monkeypatch method
Currently, you have to manually align x and y labels to the right and top. This MR provides two methods: set_xlabel
and set_ylabel
, which do the same as matplotlib.Axes.set_(xy)label
, but their default alignment is right and top.
Also provides a function monkeypatch_axis_labels
which overrides the defaults in the global matplotlib.Axes.set_(xy)label
. This is a convenience, but might have unintended side effects, and should be used with caution.
Let me know what you think!