Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

plot_data.c File Reference

#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <sys/time.h>
#include <unistd.h>

Go to the source code of this file.

Data Structures

struct  limits
struct  plot_params

Defines

#define NMAX   50000
#define NYMAX   10
#define NBUFFER   100
#define INFINITY   1.e15
#define USAGE   "\n\Usage: plot_data [-c xcol ycol1 ycol2 ...] [-c[c][xy]] [-C color1...] \n\ [-e] [-h header] [-i] [-l xmin xmax ymin ymax] \n\ [-L scale] [-N nmax] [-o] [-O xo yo] [-p[p]] \n\ [-P point_size] [-q] [-s xs ys] [-S skip] [-t ntrail] \n\ [-w[w][xy]] [-W] [-x x-label] [-X] [-y y-label] \n\ [-z zcol] [[-]-help] \n"
#define MAX_LINE   1024
#define XOR_MIN   75
#define XOR_RANGE   100
#define YOR_MIN   75
#define YOR_RANGE   100

Typedefs

typedef unsigned long Window

Functions

void err_exit (char *s)
void print_help (char *s)
void swap (float *x, float *y)
void set_or_flag (char *arg, int *flag, float *limit)
void parse_command_line (int argc, char **argv, plot_params *params)
void echo_parameters (plot_params *params)
void create_labels (plot_params *params)
void allocate_save (plot_params *params)
void skip_lines (int skip, int output)
void split_inline_command (char *temp, int *argc, char **argv)
void parse_inline_command (char *temp, plot_params *params)
void set_window_parameters (plot_params *params)
void process_inline_command (char *input_line, plot_params *params, int *reinit)
void force_limits (float *xmin, int set_xmin, float *xmax, int set_xmax)
void get_limits (float *x, float *y, int n, plot_params *params)
Window set_up_window (plot_params *params)
void swapi (int *i, int *j)
void sort_columns (plot_params *params, int *read_list, int *nread, int *index)
int readxyz (plot_params *params, float *x, float *y, float *z, int output)
void get_data (plot_params *params, float *x, float *y, float *z, int *n)
void crop (float *x, float xmin, float xmax)
void crop_data (plot_params *params, float *x, float *y, int n)
void wrap (float *x, float xmin, float xmax)
void wrap_data (plot_params *params, float *x, float *y, int n)
int decode_color (Window xwin, float z)
void plot_points (plot_params *params, float *x, float *y, int n)
float myrandom ()
void randomize_origin (plot_params *params)
void initialize_params (int argc, char **argv, plot_params *params)
 main (int argc, char *argv[])


Define Documentation

#define INFINITY   1.e15
 

Definition at line 29 of file plot_data.c.

#define MAX_LINE   1024
 

Definition at line 885 of file plot_data.c.

#define NBUFFER   100
 

Definition at line 28 of file plot_data.c.

#define NMAX   50000
 

Definition at line 26 of file plot_data.c.

#define NYMAX   10
 

Definition at line 27 of file plot_data.c.

#define USAGE   "\n\Usage: plot_data [-c xcol ycol1 ycol2 ...] [-c[c][xy]] [-C color1...] \n\ [-e] [-h header] [-i] [-l xmin xmax ymin ymax] \n\ [-L scale] [-N nmax] [-o] [-O xo yo] [-p[p]] \n\ [-P point_size] [-q] [-s xs ys] [-S skip] [-t ntrail] \n\ [-w[w][xy]] [-W] [-x x-label] [-X] [-y y-label] \n\ [-z zcol] [[-]-help] \n"
 

Definition at line 31 of file plot_data.c.

#define XOR_MIN   75
 

Definition at line 1221 of file plot_data.c.

#define XOR_RANGE   100
 

Definition at line 1222 of file plot_data.c.

#define YOR_MIN   75
 

Definition at line 1223 of file plot_data.c.

#define YOR_RANGE   100
 

Definition at line 1224 of file plot_data.c.


Typedef Documentation

typedef unsigned long Window
 

Definition at line 39 of file plot_data.c.


Function Documentation

void allocate_save ( plot_params * params )
 

Definition at line 548 of file plot_data.c.

Referenced by main(), and process_inline_command().

void create_labels ( plot_params * params )
 

Definition at line 532 of file plot_data.c.

Referenced by main(), and process_inline_command().

void crop ( float * x,
float xmin,
float xmax )
 

Definition at line 1110 of file plot_data.c.

Referenced by crop_data().

void crop_data ( plot_params * params,
float * x,
float * y,
int n )
 

Definition at line 1116 of file plot_data.c.

Referenced by main().

int decode_color ( Window xwin,
float z )
 

Definition at line 1143 of file plot_data.c.

Referenced by main().

void echo_parameters ( plot_params * params )
 

Definition at line 495 of file plot_data.c.

Referenced by main(), and process_inline_command().

void err_exit ( char * line )
 

Definition at line 108 of file plot_data.c.

void force_limits ( float * xmin,
int set_xmin,
float * xmax,
int set_xmax )
 

Definition at line 734 of file plot_data.c.

Referenced by get_limits().

void get_data ( plot_params * params,
float * x,
float * y,
float * z,
int * n )
 

Definition at line 1069 of file plot_data.c.

void get_limits ( float * x,
float * y,
int n,
plot_params * params )
 

Definition at line 781 of file plot_data.c.

void initialize_params ( int argc,
char ** argv,
plot_params * params )
 

Definition at line 1240 of file plot_data.c.

Referenced by main().

main ( int argc,
char * argv[] )
 

Definition at line 1312 of file plot_data.c.

float myrandom ( )
 

Definition at line 1215 of file plot_data.c.

Referenced by randomize_origin().

void parse_command_line ( int argc,
char ** argv,
plot_params * params )
 

Definition at line 211 of file plot_data.c.

Referenced by initialize_params(), and parse_inline_command().

void parse_inline_command ( char * temp,
plot_params * params )
 

Definition at line 587 of file plot_data.c.

Referenced by process_inline_command().

void plot_points ( plot_params * params,
float * x,
float * y,
int n )
 

Definition at line 1175 of file plot_data.c.

Referenced by main().

void print_help ( char * s )
 

Definition at line 117 of file plot_data.c.

Referenced by parse_command_line().

void process_inline_command ( char * input_line,
plot_params * params,
int * reinit )
 

Definition at line 636 of file plot_data.c.

Referenced by readxyz().

void randomize_origin ( plot_params * params )
 

Definition at line 1226 of file plot_data.c.

Referenced by initialize_params().

int readxyz ( plot_params * params,
float * x,
float * y,
float * z,
int output )
 

Definition at line 887 of file plot_data.c.

Referenced by get_data().

void set_or_flag ( char * arg,
int * flag,
float * limit )
 

Definition at line 201 of file plot_data.c.

Referenced by parse_command_line().

Window set_up_window ( plot_params * params )
 

Definition at line 824 of file plot_data.c.

Referenced by main().

void set_window_parameters ( plot_params * params )
 

Definition at line 601 of file plot_data.c.

Referenced by process_inline_command(), and set_up_window().

void skip_lines ( int skip,
int output )
 

Definition at line 558 of file plot_data.c.

Referenced by main(), and process_inline_command().

void sort_columns ( plot_params * params,
int * read_list,
int * nread,
int * index )
 

Definition at line 845 of file plot_data.c.

Referenced by readxyz().

void split_inline_command ( char * temp,
int * argc,
char ** argv )
 

Definition at line 571 of file plot_data.c.

Referenced by parse_inline_command().

void swap ( float * x,
float * y )
 

Definition at line 192 of file plot_data.c.

void swapi ( int * i,
int * j )
 

Definition at line 836 of file plot_data.c.

Referenced by sort_columns().

void wrap ( float * x,
float xmin,
float xmax )
 

Definition at line 1125 of file plot_data.c.

Referenced by wrap_data().

void wrap_data ( plot_params * params,
float * x,
float * y,
int n )
 

Definition at line 1134 of file plot_data.c.

Referenced by main().


Generated at Sun Feb 24 09:57:29 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001