compat

compat

Functions

int graphyx ()
int textplot ()

Description

Functions

graphyx ()

int
graphyx (const double *y,
         const double *x,
         int n,
         const char *yname,
         const char *xname,
         PRN *prn);

Generates a simple ascii scatter-plot of y against x and prints the plot to prn .

Parameters

y

y-axis data.

 

x

x-axis data.

 

n

number of observations.

 

yname

y-axis label.

 

xname

x-axis label.

 

prn

gretl printing struct.

 

Returns

0 on successful completion, error code on error.


textplot ()

int
textplot (const int *list,
          const DATASET *dset,
          gretlopt opt,
          PRN *prn);

Produces, using ascii graphics, either a scatter plot of the first k-1 series in list against the kth, or (if opt includes OPT_S) a time-series plot (or more generally a plot by observation).

In the case of a scatter plot, OPT_T (tall) can be used to request the use of 40 rows rather than the default of 20. In the case of a plot by observation OPT_O (one-scale) can be used to force the use of a single scale (otherwise the series may be scaled to fit).

Parameters

list

list of series to plot.

 

dset

dataset struct.

 

opt

see below.

 

prn

gretl printing struct.

 

Returns

0 on successful completion, error code on error.

Types and Values