Ticks

class aplpy.Ticks(parent)[source]

Bases: object

Methods Summary

hide()

Hide the x- and y-axis ticks

hide_x()

Hide the x-axis ticks

hide_y()

Hide the y-axis ticks

set_color(color)

Set the color of the ticks

set_length(length[, minor_factor])

Set the length of the ticks (in points)

set_linewidth(linewidth)

Set the linewidth of the ticks (in points)

set_minor_frequency(xfrequency[, yfrequency])

Set the number of subticks per major tick.

set_tick_direction(direction)

Set the direction of the ticks to be facing out of the axes (out) or into the axes (in).

set_xspacing(spacing)

Set the x-axis tick spacing, in degrees.

set_yspacing(spacing)

Set the y-axis tick spacing, in degrees.

show()

Show the x- and y-axis ticks

show_x()

Show the x-axis ticks

show_y()

Show the y-axis ticks

Methods Documentation

hide()[source]

Hide the x- and y-axis ticks

hide_x()[source]

Hide the x-axis ticks

hide_y()[source]

Hide the y-axis ticks

set_color(color)[source]

Set the color of the ticks

set_length(length, minor_factor=0.5)[source]

Set the length of the ticks (in points)

set_linewidth(linewidth)[source]

Set the linewidth of the ticks (in points)

set_minor_frequency(xfrequency, yfrequency=None)[source]

Set the number of subticks per major tick.

Set to one to hide minor ticks. If not yfrequency given, frequency is the same in both axis. Otherwise, xfrequency represents the frequency in the xaxis and yfrequency the one in the yaxis.

set_tick_direction(direction)[source]

Set the direction of the ticks to be facing out of the axes (out) or into the axes (in).

set_xspacing(spacing)[source]

Set the x-axis tick spacing, in degrees. To set the tick spacing to be automatically determined, set this to ‘auto’.

set_yspacing(spacing)[source]

Set the y-axis tick spacing, in degrees. To set the tick spacing to be automatically determined, set this to ‘auto’.

show()[source]

Show the x- and y-axis ticks

show_x()[source]

Show the x-axis ticks

show_y()[source]

Show the y-axis ticks