Patterns in static

Apophenia

Functions | Variables
apop_plot_query.c File Reference

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
 

Detailed Description

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.

Function Documentation

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.

Parameters
dataA gsl_vector holding the data. Do not pre-sort or bin; this function does that for you via apop_data_to_bins.
bin_countThe number of bins in the output histogram (if you send zero, I set this to $\sqrt(N)$, where $N$ is the length of the vector.)
withThe 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".

Autogenerated by doxygen on Wed Oct 15 2014 (Debian 0.999b+ds3-2).