#include <stdio.h>#include <string.h>#include <math.h>#include <stdlib.h>#include <time.h>#include "libtpcmisc.h"#include "include/libtpcmodext.h"Go to the source code of this file.
Functions | |
| int | plot_svg (DFT *dft, RES *res, int first, int last, char *main_title, char *x_title, char *y_title, char *fname) |
| int | plotdata (DFT *dft, RES *res, int first, int last, char *mtitle, char *xtitle, char *ytitle, char *fname) |
| int | plotdata_as_dft (DFT *dft, char *fname) |
| int plot_svg | ( | DFT * | dft, |
| RES * | res, | ||
| int | first, | ||
| int | last, | ||
| char * | main_title, | ||
| char * | x_title, | ||
| char * | y_title, | ||
| char * | fname | ||
| ) |
Writes graphical analysis plots in SVG 1.1 format. Assumes that line slope and ic are in res->parameter[0] and [1].
| dft | Plot points: X in y2, Y in y3 |
| res | Results containing parameters of line |
| first | First sample (starting from 0) used in linear fit |
| last | last sample (starting from 0) used in linear fit |
| main_title | String for plot main title, or NULL |
| x_title | String for X axis title, or NULL |
| y_title | String for Y axis title, or NULL |
| fname | SVG filename; existing file is renamed as *.bak |
Definition at line 70 of file plotdata.c.
| int plotdata | ( | DFT * | dft, |
| RES * | res, | ||
| int | first, | ||
| int | last, | ||
| char * | mtitle, | ||
| char * | xtitle, | ||
| char * | ytitle, | ||
| char * | fname | ||
| ) |
Write plot and line fit data in XHTML 1.1. Strict table format. Assumes that line slope and ic are in res->parameter[0] and [1].
| dft | Plot points: X in y2, Y in y3 |
| res | Results containing parameters of line |
| first | First sample (starting from 0) used in linear fit |
| last | last sample (starting from 0) used in linear fit |
| mtitle | String for plot main title, or NULL |
| xtitle | String for X axis title, or NULL |
| ytitle | String for Y axis title, or NULL |
| fname | Filename for plot data; existing file is renamed as *%. If extension is .dft, plot data (excluding lines) is written in DFT format with x values as separate columns before corresponding y values. |
Definition at line 207 of file plotdata.c.
References plotdata_as_dft().
| int plotdata_as_dft | ( | DFT * | dft, |
| char * | fname | ||
| ) |
Write plot data in DFT format with x values as separate columns before corresponding y values.
| dft | Plot points: X in y2, Y in y3 |
| fname | Filename for plot data |
Definition at line 379 of file plotdata.c.
Referenced by plotdata().
1.8.0