figure_rgb

Contents

figure_rgb#

pulserver.recon.figure_rgb()[source]#

Return a matplotlib figure drawn to a (y, x, 3) uint8 array.

Pass it as ReconResult(figure_rgb(fig), image_type="rgb") to send a plot, a fit or a report to the scanner as a secondary capture.

Parameters:
  • figure (matplotlib.figure.Figure) – The figure; drawn as savefig draws it, whatever its canvas.

  • dpi (float, default=None) – Resolution to draw at; the figure’s own when not given.