![]() |
|
Functions | |
| void | plot_histogram (gsl_vector *data, FILE *f, size_t bin_count, char *with) |
| FILE * | open_output (char *outfile, int sf) |
| char * | read_query (char *infile) |
| gsl_matrix * | query (char *d, char *q, int no_plot) |
| void | print_out (FILE *f, char *outfile, gsl_matrix *m) |
| int | main (int argc, char **argv) |
Variables | |
| char * | plot_type = NULL |
| int | histobins = 0 |
| int | histoplotting = 0 |
Command line utility to take in a query and produce a plot of its output via Gnuplot.
Copyright (c) 2006–2007 by Ben Klemens. Licensed under the modified GNU GPL v2; see COPYING and COPYING2.
| void plot_histogram | ( | gsl_vector * | data, |
| FILE * | f, | ||
| size_t | bin_count, | ||
| char * | with | ||
| ) |
This convenience function will take in a gsl_vector of data and put out a histogram, ready to pipe to Gnuplot.
| data | A gsl_vector holding the data. Do not pre-sort or bin; this function does that for you via apop_data_to_bins. |
| bin_count | The number of bins in the output histogram (if you send zero, I set this to , where is the length of the vector.) |
| with | The method for Gnuplot's plotting routine. Default is "boxes", so the gnuplot call will read plot '-' with boxes. The "lines" option is also popular, and you can add extra terms if desired, like "boxes linetype 3". |