Spot

class rms.Spot(latitude, longitude, radius)[source]

Bases: object

Starspot object.

Attributes

phi Spot phi [radians] where phi = longitude
r Spot radius (alias)
theta Spot theta [radians] where theta = 90 deg - latitude

Methods

at_random_position(radius)
plot([ax, projection, plot_kwargs]) Make a simple plot of this spot.

Attributes Summary

phi Spot phi [radians] where phi = longitude
r Spot radius (alias)
theta Spot theta [radians] where theta = 90 deg - latitude

Methods Summary

at_random_position(radius)
plot([ax, projection, plot_kwargs]) Make a simple plot of this spot.

Attributes Documentation

phi

Spot phi [radians] where phi = longitude

r

Spot radius (alias)

theta

Spot theta [radians] where theta = 90 deg - latitude

Methods Documentation

classmethod at_random_position(radius)[source]
plot(ax=None, projection='hammer', plot_kwargs={'color': 'k', 'marker': ', '})[source]

Make a simple plot of this spot.

Parameters:

ax : ~matplotlib.pyplot.Axes

Axis object

plot_kwargs : dict

Keyword arguments to pass to ~matplotlib.pyplot.plot

Returns:

ax : ~matplotlib.pyplot.Axes

Updated axis object