Ticks

class aplpy.Ticks(parent)[source]

Bases: object

Methods Summary

hide(self)

Hide the x- and y-axis ticks

hide_x(self)

Hide the x-axis ticks

hide_y(self)

Hide the y-axis ticks

set_color(self, color)

Set the color of the ticks

set_length(self, length[, minor_factor])

Set the length of the ticks (in points)

set_linewidth(self, linewidth)

Set the linewidth of the ticks (in points)

set_minor_frequency(self, xfrequency[, …])

Set the number of subticks per major tick.

set_tick_direction(self, direction)

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

set_xspacing(self, spacing)

Set the x-axis tick spacing, in degrees.

set_yspacing(self, spacing)

Set the y-axis tick spacing, in degrees.

show(self)

Show the x- and y-axis ticks

show_x(self)

Show the x-axis ticks

show_y(self)

Show the y-axis ticks

Methods Documentation

hide(self)[source]

Hide the x- and y-axis ticks

hide_x(self)[source]

Hide the x-axis ticks

hide_y(self)[source]

Hide the y-axis ticks

set_color(self, color)[source]

Set the color of the ticks

set_length(self, length, minor_factor=0.5)[source]

Set the length of the ticks (in points)

set_linewidth(self, linewidth)[source]

Set the linewidth of the ticks (in points)

set_minor_frequency(self, 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(self, direction)[source]

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

set_xspacing(self, 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(self, spacing)[source]

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

show(self)[source]

Show the x- and y-axis ticks

show_x(self)[source]

Show the x-axis ticks

show_y(self)[source]

Show the y-axis ticks