plot

ClickCallbacks.plot(x_index='pos', precision=4, **kwargs)

Generate a dynamically updated plot showing the values of the picked pixels.

  • x-axis represents pixel-coordinates (or IDs)

  • y-axis represents pixel-values

a new figure is started whenever the figure is closed!

Parameters:
  • x_index (str) –

    Indicator how the x-axis is labelled

    • pos : The position of the pixel in plot-coordinates

    • ID : The index of the pixel in the data

  • precision (int) – The floating-point precision of the coordinates printed to the x-axis if x_index=”pos” is used. The default is 4.

  • **kwargs – kwargs forwarded to the call to plt.plot([…], […], **kwargs).