ecolab.auto_plot_array#
- etils.ecolab.auto_plot_array(*, video_min_num_frames: int = 15, height: None | int | tuple[int, int] = (100, 250), show_images_kwargs: dict[str, Any] | None = None, show_videos_kwargs: dict[str, Any] | None = None) None [source]#
If called, 2d/3d imgage arrays will be plotted as images in colab/jupyter.
Usage:
>>> ecolab.auto_plot_array() >>> np.zeros((28, 28, 3)) # Displayed as image
- Parameters:
video_min_num_frames – Video (num_frames, h, w, c) with less than this number of frames will be displayed as individual images
height – (min, max) image height in pixels. Images smaller/larger will be reshaped. None to disable. If a single number, assume min == max.
show_images_kwargs – Kwargs forwarded to mediapy.show_images
show_videos_kwargs – Kwargs forwarded to mediapy.show_videos