Note
Click here to download the full example code
Bickley JetΒΆ
The deeptime.data.bickley_jet()
dataset.
Traceback (most recent call last):
File "/home/mho/mambaforge/envs/deeptime/lib/python3.10/site-packages/sphinx_gallery/scrapers.py", line 375, in save_figures
rst = scraper(block, block_vars, gallery_conf)
File "/home/mho/mambaforge/envs/deeptime/lib/python3.10/site-packages/sphinx_gallery/scrapers.py", line 150, in matplotlib_scraper
image_rsts.append(_anim_rst(anim,
File "/home/mho/mambaforge/envs/deeptime/lib/python3.10/site-packages/sphinx_gallery/scrapers.py", line 232, in _anim_rst
anim.save(image_path, writer=writer, dpi=use_dpi)
File "/home/mho/mambaforge/envs/deeptime/lib/python3.10/site-packages/matplotlib/animation.py", line 1071, in save
with mpl.rc_context({'savefig.bbox': None}), \
File "/home/mho/mambaforge/envs/deeptime/lib/python3.10/contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "/home/mho/mambaforge/envs/deeptime/lib/python3.10/site-packages/matplotlib/animation.py", line 236, in saving
self.finish()
File "/home/mho/mambaforge/envs/deeptime/lib/python3.10/site-packages/matplotlib/animation.py", line 342, in finish
self._cleanup() # Inline _cleanup() once cleanup() is removed.
File "/home/mho/mambaforge/envs/deeptime/lib/python3.10/site-packages/matplotlib/animation.py", line 373, in _cleanup
raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['ffmpeg', '-f', 'rawvideo', '-vcodec', 'rawvideo', '-s', '402x268', '-pix_fmt', 'rgba', '-r', '13.333333333333334', '-loglevel', 'error', '-i', 'pipe:', '-filter_complex', 'split [a][b];[a] palettegen [p];[b][p] paletteuse', '-y', '/home/mho/Development/deeptime/docs/source/datasets/images/sphx_glr_plot_bickley_jet_001.gif']' returned non-zero exit status 255.
8 # sphinx_gallery_thumbnail_number = 1
9
10 import matplotlib.pyplot as plt
11 import numpy as np
12
13 from deeptime.data import bickley_jet
14
15 n_particles = 250
16 dataset = bickley_jet(n_particles, n_jobs=8)
17 c = np.copy(dataset[0, :, 0])
18 c /= c.max()
19
20 fig, ax = plt.subplots(1, 1, figsize=(6, 4))
21 ani = dataset.make_animation(c=c, agg_backend=False, interval=75, fig=fig, ax=ax, max_frame=100)
Total running time of the script: ( 0 minutes 1.189 seconds)
Estimated memory usage: 409 MB