equator#

sunpy.visualization.drawing.equator(axes, *, rsun: Unit("m") = <<class 'astropy.constants.iau2015.IAU2015'> name='Nominal solar radius' value=695700000.0 uncertainty=0.0 unit='m' reference='IAU 2015 Resolution B 3'>, resolution=500, **kwargs)[source]#

Draws the solar equator as seen by the axes observer. Hidden parts are drawn as a dotted line.

Parameters:
  • axes (matplotlib.axes.Axes) – The axes to plot the equator on.

  • rsun (Quantity) – Solar radius (in physical length units) at which to draw the solar equator. Defaults to the standard photospheric radius.

  • resolution (int) – The number of points used to represent the equator.

Returns:

  • visible (Polygon) – The patch added to the axes for the visible part of the solar equator.

  • hidden (Polygon) – The patch added to the axes for the hidden part of the solar equator.

Examples

>>> import sunpy.map
>>> from sunpy.visualization import drawing
>>> import sunpy.data.sample   
>>> aia = sunpy.map.Map(sunpy.data.sample.AIA_171_IMAGE)   
>>> fig = plt.figure()   
>>> ax = fig.add_subplot(projection=aia)   
>>> aia.plot()   
>>> drawing.equator(ax)