axis_labels_from_ctype#

sunpy.visualization.axis_labels_from_ctype(ctype, unit)[source]#

Returns axis labels for the given coordinate type and unit.

Parameters:
  • ctype (str) – Coordinate type.

  • unit (str, None) – Required unit. If None no unit is added to the label.

Returns:

str – “Axis Label [Unit]”