Main Page | Data Structures | File List | Data Fields | Globals

plotdata.c File Reference


Detailed Description

Author:
Hal Finkel
Data and peak plotting

#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <gsl/gsl_statistics.h>
#include <plplot/plplot.h>
#include "commands.h"
#include "common.h"

Include dependency graph for plotdata.c:

Include dependency graph

Data Structures

struct  def_file_dev
 An association between a file-name extension and a plotting device name. More...

Defines

#define MAXTITLE   256
 The maximum length of the plot title.
#define CHANPTS   10
 The number of points to draw per channel.
#define DEFDEV   "xwin"
 The default plplot output device.

Functions

int finddomain (struct pf_data *d, struct pf_plot_params *p, struct pf_cal_fit *cal)
 Calculate the domain in channels if specified in calibrated units.
void pf_plotdata (struct pf_data *d, struct pf_plot_params *p, struct pf_cal_fit *cal)
 Plot data.
void pf_plotpeak (struct pf_data *d, struct pf_plot_params *p, struct pf_cal_fit *cal)
 Plot a given peak.

Variables

const struct def_file_dev def_file_devs []
 Mapping of file-name extensions to plotting device names.
const int def_file_devsn = sizeof(def_file_devs)/sizeof(def_file_devs[0])
 Number of entries in the def_file_devs array.

Define Documentation

#define CHANPTS   10
 

The number of points to draw per channel.

#define DEFDEV   "xwin"
 

The default plplot output device.

#define MAXTITLE   256
 

The maximum length of the plot title.


Function Documentation

int finddomain struct pf_data d,
struct pf_plot_params p,
struct pf_cal_fit cal
 

Calculate the domain in channels if specified in calibrated units.

Parameters:
[in] d The data set
[in,out] p The plot parameters
[in] cal The calibration fit
Returns:
Boolean success indicator

Here is the call graph for this function:

void pf_plotdata struct pf_data d,
struct pf_plot_params p,
struct pf_cal_fit cal
 

Plot data.

Parameters:
[in] d The data set
[in] p The plotting parameters
[in] cal The calibration fit

Here is the call graph for this function:

void pf_plotpeak struct pf_data d,
struct pf_plot_params p,
struct pf_cal_fit cal
 

Plot a given peak.

Parameters:
[in] d The data set
[in] p The plotting parameters
[in] cal The calibration fit

Here is the call graph for this function:


Variable Documentation

const struct def_file_dev def_file_devs[]
 

Initial value:

 {
        { "plmeta", "plmeta" },
        { "plm", "plmeta" },
        { "ps", "ps" },
        { "psc", "psc" },
        { "xfig", "xfig" },
        { "imp", "imp" },
        { "pbm", "pbm" },
        { "jpg", "jpeg" },
        { "jpeg", "jpeg" },
        { "png", "png" },
        { "cgm", "cgm" }
}
Mapping of file-name extensions to plotting device names.

const int def_file_devsn = sizeof(def_file_devs)/sizeof(def_file_devs[0])
 

Number of entries in the def_file_devs array.


Generated on Sun Feb 20 17:46:43 2005 for peakfinder-0.1 by  doxygen 1.3.9.1