PlotLabeller

class stonerplots.PlotLabeller(*args, x=<class 'stonerplots.format.TexEngFormatter'>, y=<class 'stonerplots.format.TexEngFormatter'>, z=<class 'stonerplots.format.TexEngFormatter'>, **kargs)

Bases: _TrackNewFiguresAndAxes

Adjust the x and y axis tick formatters of plots created in the context handler.

Keyword Arguments:
x,y,z (Formatter,Locator or tuple or list of Formatter or Locator):

Ticker formatter and locator classes or isntances.

Notes:

The PlotLabeller Context handerl will apply any given axis tick locators and formatters to any plots created inside the context handler. If Formatter/Locator classes are passed in, these are instantiated with default parameters. If the minor formatter/locator is set, the same locator and formatter are applied as for the major formatter/locator.

The default is to not change the Locator and set the Formatters to use the TexEngFormatter that renders the labels with LaTeX codes to allow proper micro signs.

Todo:

This needs proper handling of minor/major fomatting.