gsplot.style.ticks#
Functions
|
Turn off minor ticks for the specified axis. |
|
Turn on minor ticks for the specified axis. |
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")