Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukicdarkoo/dspplot
Pattern to plot data in C
https://github.com/lukicdarkoo/dspplot
Last synced: 10 days ago
JSON representation
Pattern to plot data in C
- Host: GitHub
- URL: https://github.com/lukicdarkoo/dspplot
- Owner: lukicdarkoo
- Created: 2015-11-01T21:46:28.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-15T19:45:37.000Z (almost 9 years ago)
- Last Synced: 2023-07-31T12:14:52.722Z (over 1 year ago)
- Language: C
- Size: 33.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#OAiS DSP 1
Pattern to plot data in C## Getting started
- Install **gnuplot**
```
sudo apt-get install gnuplot
sudo apt-get install gnuplot-x11
```
- Clone repositorium `git clone https://github.com/lukicdarkoo/dspplot.git`
- Compile example `make`
- Run example `./bin/dspplot`## Plotting
x - array for x axis (to avoid warnings cast to double *)
y - array for y axis (to avoid warnings cast to double *)
length - array length
size - sizeof(data type)
Standard plot
```plot(double* x, double* y, int length, int size)```
Plot will automatically set values for x axis
```plot_y(double *y, int length, int size)```
Plot will calculate FFT and automatically set values for x axis
```extern void plot_fft_y(double* y, int length, int size)```
Prepare data for Audacity
```plot_file(double* y, int length, int size, char *filename)```