Note
Go to the end to download the full example code.
Image Vmin/Vmax#
Example showing the simple plot creation followed by changing the vmin/vmax with Standard imageio image.

# test_example = true
import fastplotlib as fpl
import imageio.v3 as iio
figure = fpl.Figure(size=(700, 560))
data = iio.imread("imageio:astronaut.png")
# plot the image data
image_graphic = figure[0, 0].add_image(data=data, name="iio astronaut")
figure.show()
image_graphic.vmin = 0.5
image_graphic.vmax = 0.75
# NOTE: fpl.loop.run() should not be used for interactive sessions
# See the "JupyterLab and IPython" section in the user guide
if __name__ == "__main__":
print(__doc__)
fpl.loop.run()
Total running time of the script: (0 minutes 0.395 seconds)