ecoli.plots.snapshots_video

ecoli.plots.snapshots_video.main(total_time=2000, step=60, exchange=False)[source]
ecoli.plots.snapshots_video.make_snapshot_saver(multibody_agent_colors, multibody_field_range, bounds, images_dir, **kwargs)[source]
ecoli.plots.snapshots_video.make_tags_saver(agent_colors, tag_ranges, tag_colors, bounds, images_dir, convert_to_concs=False, **kwargs)[source]
ecoli.plots.snapshots_video.make_timeseries_saver(data, show_timeseries, highlight_agents, highlight_color, images_dir)[source]
ecoli.plots.snapshots_video.make_video(data, bounds, plot_type='fields', step=1, highlight_agents=None, show_timeseries=None, highlight_color=[0, 1, 1], out_dir='out', filename='snapshot_vid', cpus=1, **kwargs)[source]

Make a video with snapshots across time

Parameters:

plot_type – (str) select either ‘fields’ or ‘tags’. ‘fields’ is the default

ecoli.plots.snapshots_video.video_from_images(img_paths, out_file)[source]