IPython Notebook Routines

API Reference

csxtools.ipynb.image_stack_to_movie(images, frames=None, vmin=None, vmax=None, figsize=(6, 5), cmap='CMRmap', fps=10)[source]

Convert image stack to movie and show in notebook.

Parameters:
  • images (array_like) – Stack of images to show as a movie of shape (N, y, x).
  • frames (int) – Number of frames to process
  • vmin (number) – Minimum value to display for imshow
  • vmax (number) – Maximum value to display for imshow
  • figsize (tuple) – Figure size for each frame
  • cmap (string) – Colormap to use for plotting image
  • fps (int) – Framerate for created movie
csxtools.ipynb.show_image_stack(images, minmax, fontsize=18, cmap='CMRmap', zlabel='Intensty [ADU]', figsize=(12, 10))[source]

Show an Interactive Image Stack in an IPython Notebook

Parameters:
  • images (array_like) – Stack of images of shape (N, y, x) where N is the number of images to show.
  • minmax (tuple) – Value for the minimum and maximum of the stack in the form (min, max)
  • fontsize (int) – Fontsize for axis labels.
  • cmap (string) – Colormap to use for image (from matplotlib)
  • zlabel (string) – Axis label for the color bar (z-axis)
  • figsize (tuple) – Figure size (from matplotlib)