gsplot.style.ticks#

Functions

ticks_off(ax[,Β mode])

Turn off minor ticks for the specified axis.

ticks_on(ax[,Β mode])

Turn on minor ticks for the specified axis.

ticks_on_axes()

Turn on minor ticks for all axes in the current figure.

ticks_off(ax, mode='xy')[source]#

Turn off minor ticks for the specified axis.

Parameters:
  • ax (Axes) – The target axis for minor tick configuration.

  • mode ({"x", "y", "xy"}, optional) – Specifies the axis to configure. β€˜x’ for x-axis, β€˜y’ for y-axis, and β€˜xy’ for both axes. Default is β€˜xy’.

Examples

>>> import gsplot as gs
>>> # Turn off minor ticks on the x-axis
>>> gs.ticks_off(ax=ax, mode="x")
ticks_on(ax, mode='xy')[source]#

Turn on minor ticks for the specified axis.

Parameters:
  • ax (Axes) – The target axis for minor tick configuration.

  • mode ({"x", "y", "xy"}, optional) – Specifies the axis to configure. β€˜x’ for x-axis, β€˜y’ for y-axis, and β€˜xy’ for both axes. Default is β€˜xy’.

Examples

>>> import gsplot as gs
>>> # Turn on minor ticks on the x-axis
>>> gs.ticks_on(ax=ax, mode="x")
ticks_on_axes()[source]#

Turn on minor ticks for all axes in the current figure.

Examples

>>> import gsplot as gs
>>> # Turn on minor ticks for all axes
>>> gs.ticks_on_axes()