-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplot.h
30 lines (22 loc) · 1.17 KB
/
plot.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*----------------------------------------------------------------------------*/
/* plot.h */
/* Author: Godwin Duan */
/*----------------------------------------------------------------------------*/
#ifndef PLOT_INCLUDED
#define PLOT_INCLUDED
#include <stdbool.h>
#include "types.h"
/* Prints eigenfrequencies, eigenvectors, and coefficients of the simulation */
void print_result(Result result);
/* Plots a scatterplot of eigenfrequencies vs. mode number */
void plot_eigenfrequencies(Result result);
/* Plots a bar graph of amplitudes of all normal modes */
void plot_mode_amplitudes(Result result);
/* Plots normal modes of system. User can select which mode to display. Spring
* simulations are plotted as if they were a string simulation. */
void plot_normal_modes(Result result, Simulation sim);
/* Animates the simulation, sped up/down by factor time_scale. If time_scale =
* 1.0, the simulation plays at real speed. If save_gif is true, saves animation
* as a GIF. */
void animate(Result result, Simulation sim, double time_scale, bool save_gif);
#endif