ParticleWireframePlot
Examples using this class are:
Acoustofluidics 2022: Plotting the Scattering Field
- class osaft.plotting.scattering.particle_plots.ParticleWireframePlot(sol, nbr_r_levels=10, nbr_theta_levels=10, resolution=(100, 100), scale_factor=0.1)[source]
Bases:
BaseScatteringPlotterPlotting class for wireframe plot of the particle
- Parameters:
sol (
BaseScattering) – solution to be plottednbr_r_levels (
int, optional) – number of circles shown in the wireframeDefault:10nbr_theta_levels (
int, optional) – number of radii shown in the wireframeDefault:10resolution (
Union[int,tuple[int,int]], optional) – resolution, if tuple (radial res, tangential res)Default:(100, 100)scale_factor (
float, optional) – scaling factor for the displacements, if None autoDefault:0.1Public Methods:
plot([phase, mode, ax])Plot wireframe
animate([frames, interval, mode, ax])Animate wireframe
plot_evolution([layout])Plot wireframe over one period
- animate(frames=64, interval=100.0, mode=None, ax=None)[source]
Animate wireframe
- Parameters:
frames (
int, optional) – number of frames for the animationDefault:64interval (
float, optional) – interval between frames in millisecondsDefault:100.0mode (
Optional[int], optional) – mode to be plotted, ifNonesuperposition of all modesDefault:Noneax (
Optional[Axes], optional) – if ax is passed, animation will be drawn axDefault:None