postgkyl.diagnostics.vm.trajectory.trajectory¶
- postgkyl.diagnostics.vm.trajectory.trajectory(*datasets, fixaspect=False, interval=100, no_velocity=False, numframes=None, xmin=None, xmax=None, ymin=None, ymax=None, zmin=None, zmax=None, elevation=None, azimuth=None)¶
Animate one or more particle trajectories in 3-D.
- Parameters:
datasets – One or more datasets, each holding a position (3-component,
x, y, z) or position+velocity (6-component,x, y, z, vx, vy, vz) time series, withgrid[0]one time stamp per sample (the dynvector convention).fixaspect – Enforce the same scaling on all three axes.
interval – Animation frame interval, in milliseconds.
no_velocity – Do not draw a velocity vector at the current position.
numframes – Number of animation frames;
Noneuses one frame per sample. When given, samples are subsampled evenly (byfloor(num_samples / numframes)).xmin – Optional lower x bound; outside points are masked.
xmax – Optional upper x bound; outside points are masked.
ymin – Optional lower y bound; outside points are masked.
ymax – Optional upper y bound; outside points are masked.
zmin – Optional lower z bound; outside points are masked.
zmax – Optional upper z bound; outside points are masked.
elevation – Initial 3-D elevation angle in degrees.
azimuth – Initial 3-D azimuth angle in degrees.
- Returns:
The
FuncAnimation.- Raises:
ValueError – if no datasets are given.