plotnine.annotation_logticks

annotation_logticks(
    sides="bl",
    alpha=1,
    color="black",
    size=0.5,
    linetype="solid",
    lengths=(0.036, 0.0225, 0.012),
    base=None
)

Marginal log ticks.

If added to a plot that does not have a log10 axis on the respective side, a warning will be issued.

Parameters

sides : str = "bl"

Sides onto which to draw the marks. Any combination chosen from the characters btlr, for bottom, top, left or right side marks. If coord_flip() is used, these are the sides after the flip.

alpha : float = 1

Transparency of the ticks

color : str | TupleFloat3 | TupleFloat4 = "black"

Colour of the ticks

size : float = 0.5

Thickness of the ticks

linetype : Literal["solid", "dashed", "dashdot", "dotted"] | Sequence[float] = "solid"

Type of line

lengths : TupleFloat3 = (0.036, 0.0225, 0.012)

length of the ticks drawn for full / half / tenth ticks relative to panel size

base : float | None = None

Base of the logarithm in which the ticks will be calculated. If None, the base used to log transform the scale will be used.