In [1]:
cd ~/Inzynierka/pythonpic/


/home/dominik/Inzynierka/pythonpic

In [6]:
from pythonpic.visualization.animation import animation
from pythonpic.classes import load_simulation
from matplotlib import animation as mpl_anim

In [3]:
S = load_simulation("data_analysis/twostream/TS1/TS1.hdf5")


Postprocessing grid.
Postprocessing beam1.
Postprocessing beam2.

In [4]:
animation(S, True, frame_to_draw=10)


/usr/lib/python3.6/site-packages/matplotlib/axes/_base.py:3193: UserWarning: Attempting to set identical bottom==top results
in singular transformations; automatically expanding.
bottom=0.0, top=0.0
  'bottom=%s, top=%s') % (bottom, top))
/usr/lib/python3.6/site-packages/matplotlib/axes/_base.py:3193: UserWarning: Attempting to set identical bottom==top results
in singular transformations; automatically expanding.
bottom=-0.0, top=0.0
  'bottom=%s, top=%s') % (bottom, top))
Drawing iteration 10
Saving iteration 10 to data_analysis/twostream/TS1/TS1_10.png
Out[4]:

In [21]:
for w in mpl_anim.writers.list():
    print(w, mpl_anim.writers.is_available(w), mpl_anim.writers[w])


ffmpeg True <class 'matplotlib.animation.FFMpegWriter'>
ffmpeg_file True <class 'matplotlib.animation.FFMpegFileWriter'>
mencoder True <class 'matplotlib.animation.MencoderWriter'>
mencoder_file True <class 'matplotlib.animation.MencoderFileWriter'>
imagemagick True <class 'matplotlib.animation.ImageMagickWriter'>
imagemagick_file True <class 'matplotlib.animation.ImageMagickFileWriter'>