Display Tools

Overview

The displayTools module provides matplotlib-based helpers for visualising phase maps, pupil images, and WFS frames.

Selected API reference

OOPAO.tools.displayTools.displayMap(A, norma=False, axis=2, mask=0, returnOutput=False)[source]

Display a 2-D phase/OPD map or a 3-D image cube.

Parameters:
  • A (numpy.ndarray) – Input array (2-D or 3-D).

  • norma (bool) – If True, normalise each frame independently. Default False.

  • axis (int) – Cube axis to iterate over. Default 2.

  • mask (int) – If 1, apply a pupil mask before display. Default 0.

  • returnOutput (bool) – If True, return the display array instead of plotting. Default False.

OOPAO.tools.displayTools.makeSquareAxes(ax)[source]

Force a matplotlib axes to have equal aspect ratio (square).

Parameters:

ax – Matplotlib axes object.

OOPAO.tools.displayTools.cl_plot(obj, param, ...)[source]

Interactive closed-loop display that mimics an AO GUI, showing WFS frame, DM shape, PSF, and Strehl history in real time during a closed-loop run.