webbpsf_ext.coords.plotAxes

webbpsf_ext.coords.plotAxes(ax, position=(0.9, 0.1), label1='V2', label2='V3', dir1=[- 1, 0], dir2=[0, 1], angle=0, alength=0.12, width=1.5, headwidth=6, color='w', alpha=1, fontsize=11)[source]

Compass arrows

Show V2/V3 coordinate axis on a plot. By default, this function will plot the compass arrows in the lower right position in sky-right coordinates (ie., North/V3 up, and East/V2 to the left).

Parameters
  • ax (axis) – matplotlib axis to plot coordiante arrows.

  • position (tuple) – XY-location of joined arrows as a fraction (0.0-1.0).

  • label1 (str) – Label string for horizontal axis (ie., ‘E’ or ‘V2’).

  • label2 (str) – Label string for vertical axis (ie, ‘N’ or ‘V3’).

  • dir1 (array like) – XY-direction values to point “horizontal” arrow.

  • dir2 (array like) – XY-direction values to point “vertical” arrow.

  • angle (float) – Rotate coordinate axis by some angle. Positive values rotate counter-clockwise.

  • alength (float) – Length of arrow vectors as fraction of plot axis.

  • width (float) – Width of the arrow in points.

  • headwidth (float) – Width of the base of the arrow head in points.

  • color (color) – Self-explanatory.

  • alpha (float) – Transparency.