Basic graphical routines.

Different figures can created simultaneously. More...

Functions

void plot_point (double x, double y, int color=1, int nfig=0, double ymin=-1., double ymax=1., const char *title=0x0, const char *label_y=0x0, const char *device=0x0)
 Drawing a point as a small circle.
void plot_point_set (int np, const double *xx, const double *yy, int color=1, int nfig=0, double ymin=-1., double ymax=1., const char *title=0x0, const char *label_y=0x0, const char *device=0x0)
 Drawing a set of points as small circles.
void plot_profile (const double *yy, int nx, int color=1, int style=1, int nfig=0, double ymin=-1., double ymax=1., const char *title=0x0, const char *label_y=0x0, const char *device=0x0)
 Drawing a profile with uniform x sampling.
void plot_close (int nfig=0)
 Closing a figure.
void plot_close_all ()
 Closing all opened figures.

Detailed Description

Different figures can created simultaneously.

They are characterized by the label nfig.


Function Documentation

void plot_close int  nfig = 0  ) 
 

Closing a figure.

Parameters:
nfig [input] Index of the figure (in the range [0,99])

Definition at line 114 of file plot.C.

void plot_close_all  ) 
 

Closing all opened figures.

Definition at line 136 of file plot.C.

void plot_point double  x,
double  y,
int  color = 1,
int  nfig = 0,
double  ymin = -1.,
double  ymax = 1.,
const char *  title = 0x0,
const char *  label_y = 0x0,
const char *  device = 0x0
 

Drawing a point as a small circle.

Parameters:
x point abscissa
y point ordinate
color color of the small circle:
  • 0 : black (background)
  • 1 : white (default)
  • 2 : red
  • 3 : green
  • 4 : blue
  • 5 : cyan
  • 6 : magenta
  • 7 : yellow
  • 8 : orange
  • 9 : green + yellow
  • 10 : green + cyan
  • 11 : blue + cyan
  • 12 : blue + magenta
  • 13 : red + magenta
  • 14 : dark gray
  • 15 : light gray
nfig index of the figure (in the range [0,99]) to be used for the plot: if this figure does not exist, it will be created with the device name device provided by the last argument.
ymin lower bound on y of the graphical window (used only if a new figure must be created)
ymax upper bound on y of the graphical window (used only if a new figure must be created)
title title of the figure (used only if a new figure must be created)
label_y y legend of the figure (used only if a new figure must be created)
device type of graphical device (default value = 0x0, will result in interactive choice) (used only if a new figure must be created)

Definition at line 210 of file plot.C.

void plot_point_set int  np,
const double *  xx,
const double *  yy,
int  color = 1,
int  nfig = 0,
double  ymin = -1.,
double  ymax = 1.,
const char *  title = 0x0,
const char *  label_y = 0x0,
const char *  device = 0x0
 

Drawing a set of points as small circles.

Parameters:
np Number of points
xx Array (size: np ) of abscissas of the points
yy Array (size: np ) of ordinates of the points
color color of the small circles: see color_list
nfig index of the figure (in the range [0,99]) to be used for the plot: if this figure does not exist, it will be created with the device name device provided by the last argument.
ymin lower bound on y of the graphical window (used only if a new figure must be created)
ymax upper bound on y of the graphical window (used only if a new figure must be created)
title title of the figure (used only if a new figure must be created)
label_y y legend of the figure (used only if a new figure must be created)
device type of graphical device (default value = 0x0, will result in interactive choice) (used only if a new figure must be created)

Definition at line 241 of file plot.C.

void plot_profile const double *  yy,
int  nx,
int  color = 1,
int  style = 1,
int  nfig = 0,
double  ymin = -1.,
double  ymax = 1.,
const char *  title = 0x0,
const char *  label_y = 0x0,
const char *  device = 0x0
 

Drawing a profile with uniform x sampling.

A profile is a curve y=y(x). It is drawn on the specified figure. If the latter is not opened, it will be opened with the device name device provided by the last argument.

Parameters:
yy Array (size: nx ) of y values to be drawn (the x sampling is supposed to be uniform in [-1,1]).
nx Number of points
color color of the profile: see color_list
style style of the profile: the possible values are line_style[i] = 1 (full line), 2 (dashed), 3 (dot-dash-dot-dash), 4 (dotted), 5 (dash-dot-dot-dot).
nfig index of the figure (in the range [0,99]) to be used for the plot: if this figure does not exist, it will be created with the device name device provided by the last argument.
ymin lower bound on y of the graphical window (used only if a new figure must be created)
ymax upper bound on y of the graphical window (used only if a new figure must be created)
title title of the figure (used only if a new figure must be created)
label_y y legend of the figure (used only if a new figure must be created)
device type of graphical device (default value = 0x0, will result in interactive choice) (used only if a new figure must be created)

Definition at line 152 of file plot.C.


Generated on Tue Dec 6 14:48:44 2011 for POLYNOM by  doxygen 1.4.6