Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Changed encoding options for animation scripts to one that work on the RCAC cluster
  • Loading branch information
daminton committed Aug 24, 2021
1 parent fc24530 commit 0825600
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/symba_chambers_2013/aescattermovie.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, ds, param):
self.ax.set_ylim(ymin, ymax)
fig.add_axes(self.ax)
self.ani = animation.FuncAnimation(fig, self.update, interval=1, frames=nframes, init_func=self.setup_plot, blit=True)
self.ani.save('aescatter.mp4', fps=30, dpi=300, extra_args=['-vcodec', 'libx264'])
self.ani.save('aescatter.mp4', fps=30, dpi=300, extra_args=['-vcodec', 'mpeg4'])
print('Finished writing aescattter.mp4')

def scatters(self, pl, radmarker, origin):
Expand Down Expand Up @@ -70,7 +70,7 @@ def setup_plot(self):
self.s1 = slist[1]
self.s2 = slist[2]
self.s3 = slist[3]
self.ax.legend(loc='upper right')
self.ax.legend(loc='lower right')
return self.s0, self.s1, self.s2, self.s3, self.title

def data_stream(self, frame=0):
Expand Down
4 changes: 2 additions & 2 deletions examples/symba_clement_2018/aescattermovie.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, ds, param):
self.ax.set_ylim(ymin, ymax)
fig.add_axes(self.ax)
self.ani = animation.FuncAnimation(fig, self.update, interval=1, frames=nframes, init_func=self.setup_plot, blit=True)
self.ani.save('aescatter.mp4', fps=30, dpi=300, extra_args=['-vcodec', 'libx264'])
self.ani.save('aescatter.mp4', fps=30, dpi=300, extra_args=['-vcodec', 'mpeg4'])
print('Finished writing aescattter.mp4')

def scatters(self, pl, radmarker, origin):
Expand Down Expand Up @@ -70,7 +70,7 @@ def setup_plot(self):
self.s1 = slist[1]
self.s2 = slist[2]
self.s3 = slist[3]
self.ax.legend(loc='upper right')
self.ax.legend(loc='lower right')
return self.s0, self.s1, self.s2, self.s3, self.title

def data_stream(self, frame=0):
Expand Down
2 changes: 1 addition & 1 deletion examples/symba_mars_disk/aescattermovie.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, ds, param):
self.ax.set_ylim(ymin, ymax)
fig.add_axes(self.ax)
self.ani = animation.FuncAnimation(fig, self.update, interval=1, frames=nframes, init_func=self.setup_plot, blit=True)
self.ani.save('aescatter.mp4', fps=30, dpi=300, extra_args=['-vcodec', 'libx264'])
self.ani.save('aescatter.mp4', fps=30, dpi=300, extra_args=['-vcodec', 'mpeg4'])
print('Finished writing aescattter.mp4')

def scatters(self, pl, radmarker, origin):
Expand Down

0 comments on commit 0825600

Please sign in to comment.