tomodrgn.analysis.plot_projections#
- plot_projections(images: ndarray, labels: list[str], width_between_imgs_px: int = 20, height_between_imgs_px: int = 40) None [source]#
Plot a stack of grayscale images. The rendered figure has precisely the correct number of pixels for each image, avoiding the default resampling behavior of plt.imshow.
- Parameters:
images – array of images to plot, shape (nimgs, boxsize, boxsize)
labels – list of text labels to annotate the title of each image, len(nimgs)
width_between_imgs_px
height_between_imgs_px
- Returns:
matplotlib figure and axes