Overview
OpNavScenarios/plotting/OpNav_Plotting.py contains the plotting routines. None of the files are saved,
but are shown when the scenario is run with python. Saving is left to the user’s discretion.
- 
class OpNav_Plotting.AnimatedCircles(size, centers, radii, validity)[source]
- Bases: - object
 - An animated scatter plot using matplotlib.animations.FuncAnimation. - 
- 
setup_plot()[source]
- Initial drawing of the scatter plot. 
 - 
- 
update(i)[source]
- Update the scatter plot. 
 
- 
class OpNav_Plotting.AnimatedLimb(size, limb, centers, validity)[source]
- Bases: - object
 - An animated scatter plot using matplotlib.animations.FuncAnimation. - 
- 
data_stream(i)[source]
- Generate a random walk (brownian motion). Data is scaled to produce
a soft “flickering” effect. 
 - 
- 
setup_plot()[source]
- Initial drawing of the scatter plot. 
 - 
- 
update(i)[source]
- Update the scatter plot. 
 
- 
OpNav_Plotting.fit_sin(tt, yy)[source]
- Fit sin to the input time sequence, and return fitting parameters “amp”, “omega”, “phase”, “offset”, “freq”, “period” and “fitfunc”