bronx.graphics.axes¶
Tools for handling axes within figures.
Functions¶
- bronx.graphics.axes.set_figax(figure=None, ax=None, **subplots_kw)[source]¶
Generate or check consistency of (figure, ax) duet to work on.
If figure and ax are both None, generate the duet using pyplot.subplots(), in which case any argument can be additionally passed through subplots_kw.
- bronx.graphics.axes.set_nice_time_axis(axis, xy, dt_min=None, dt_max=None, showgrid=True, datefmt=None, tickslabelsrotation=30.0)[source]¶
Set an adequate axis ticks and ticks labels for Date/Hour axis.
- Parameters:
axis – the axis instance to work on
xy – must be ‘x’ or ‘y’
dt_min – datetime.datetime instance corresponding to plot min; if None, take it from axis
dt_max – datetime.datetime instance corresponding to plot max if None, take it from axis
showgrid – to set the grid or not
datefmt – format for date
tickslabelsrotation – angle in degrees, anti-clockwise order