Re: [Meep-discuss] Failed attempt to animate a "slice" of a 3D simulation.

2020-05-28 Thread David Banas
That worked; thanks! -db > On May 28, 2020, at 9:15 AM, Alec Hammond wrote: > > Try this: > > Animate = mp.Animate2D(sim, fields=mp.Ey, f=f, realtime=False, > normalize=True, output_plane=mp.Volume(center=mp.Vector3(0,0,0), > size=mp.Vector3(20, 20, 0))) > > On Thu, May 28, 2020 at 9:09 AM

Re: [Meep-discuss] Failed attempt to animate a "slice" of a 3D simulation.

2020-05-28 Thread Alec Hammond
Try this: Animate = mp.Animate2D(sim, fields=mp.Ey, f=f, realtime=False, normalize=True, output_plane=mp.Volume(center=mp.Vector3(0,0,0), size=mp.Vector3(20, 20, 0))) On Thu, May 28, 2020 at 9:09 AM David Banas wrote: > I’m trying to annotate a 3D simulation, by confining my run using the >

[Meep-discuss] Failed attempt to animate a "slice" of a 3D simulation.

2020-05-28 Thread David Banas
I’m trying to annotate a 3D simulation, by confining my run using the “in_volume()” function: import matplotlib.pyplot as plt sim.reset_meep() f = plt.figure(dpi=100) Animate = mp.Animate2D(sim, fields=mp.Ey, f=f, realtime=False, normalize=True) plt.close()