enhancementhelp wantednew feature
Repository metrics
- Stars
- (556 stars)
- PR merge metrics
- (PR metrics pending)
Description
Originally reported by: Stuart Mumford (Bitbucket: smumford, GitHub: smumford)
I would like to be able to animate changing the location of a SlicePlot, i.e. sweeping through a domain.
Something like this
slc = yt.SlicePlot(ds_h5, 'z', 'VortXmag', origin='left-domain', center=(1e8,1e8,10*12.5e5))
slc.set_window_size(8)
fig = slc.plots['VortXmag'].figure
def animate(i):
slc.set_center((1e8,1e8,i*12.5e5))
animation.FuncAnimation(fig, animate, frames=range(0,127,2), interval=50, blit=True)