Top | ![]() |
![]() |
![]() |
![]() |
enum | GptFlags |
#define | GP_ASYNC |
typedef | gretlRGB |
typedef | GPT_SPEC |
#define | N_GP_LINETYPES |
#define | GP_WIDTH |
#define | GP_HEIGHT |
#define | GP_LB_WIDTH |
#define | GP_LB_HEIGHT |
#define | GP_XL_WIDTH |
#define | GP_XL_HEIGHT |
#define | GP_XXL_WIDTH |
#define | GP_XXL_HEIGHT |
#define | GP_XW_WIDTH |
#define | GP_SQ_SIZE |
enum | PlotType |
enum | FitType |
enum | TermType |
const char * gretl_gnuplot_term_line (TermType ttype
,PlotType ptype
,GptFlags flags
,const char *font
);
Constructs a suitable line for sending to gnuplot to invoke the specified "terminal".
FILE * open_plot_input_file (PlotType ptype
,GptFlags flags
,int *err
);
Opens a file into which gnuplot commands will be written.
Depending on the prospective use of the stream, some
header-type material may be written into it (the primary
case being when we're going to produce PNG output
for display in the gretl GUI). The prospective use is
figured out based on the program state, ptype
and
flags
.
FILE *
open_3d_plot_input_file (int *iact
);
Writes a gnuplot plot file to display a 3D plot (interactive if requested and feasible).
int
finalize_plot_input_file (FILE *fp
);
Closes fp
and attempts to "make" the graph that it specifies.
int
finalize_3d_plot_input_file (FILE *fp
);
Closes fp
and alerts libgretl to the fact that an interactive
3-D plot is wanted.
void
gnuplot_cleanup (void
);
Removes any temporary gnuplot input file written in the user's dot directory.
PlotType
plot_type_from_string (const char *str
);
the special plot code corresponding to the initial
comment string in the plot file, or PLOT_REGULAR
if no special
comment is recognized.
void plot_get_scaled_dimensions (int *width
,int *height
,double scale
);
int matrix_plot (gretl_matrix *m
,const int *list
,const char *literal
,gretlopt opt
);
int gnuplot (const int *plotlist
,const char *literal
,const DATASET *dset
,gretlopt opt
);
Writes a gnuplot plot file to display the values of the
variables in list
and calls gnuplot to make the graph.
int multi_scatters (const int *list
,const DATASET *dset
,gretlopt opt
);
Writes a gnuplot plot file to display up to 16 small graphs
based on the variables in list
, and calls gnuplot to make
the graph.
int matrix_scatters (const gretl_matrix *m
,const int *list
,const DATASET *dset
,gretlopt opt
);
Writes a gnuplot plot file to display up to 16 small graphs
based on the data in m
, and calls gnuplot to make
the graph.
int gnuplot_3d (int *list
,const char *literal
,DATASET *dset
,gretlopt *opt
);
Writes a gnuplot plot file to display a 3D plot (Z on the vertical axis, X and Y on base plane).
list |
list of variables to plot, by ID number: Y, X, Z |
|
literal |
literal command(s) to pass to gnuplot (or NULL) |
|
dset |
pointer to dataset. |
|
opt |
may include OPT_A to force display of fitted surface; may include OPT_I to force an interactive (rotatable) plot. Note that OPT_I may be removed on output if a suitable gnuplot terminal is not present. |
int plot_freq (FreqDist *freq
,DistCode dist
,gretlopt opt
);
Plot the actual frequency distribution for a variable versus a theoretical distribution: Gaussian, gamma or none.
int plot_corrmat (VMatrix *corr
,gretlopt opt
);
Produces a heatmap plot based on a correlation matrix.
int correlogram_plot (const char *vname
,const double *acf
,const double *pacf
,const gretl_matrix *PM
,int m
,double pm
,gretlopt opt
);
int periodogram_plot (const char *vname
,int T
,int L
,const double *x
,gretlopt opt
);
int theil_forecast_plot (const int *plotlist
,const DATASET *dset
,gretlopt opt
);
int panel_means_XY_scatter (const int *list
,const char *literal
,const DATASET *dset
,gretlopt opt
);
int cli_panel_plot (const int *list
,const char *literal
,const DATASET *dset
,gretlopt opt
);
int plot_fcast_errs (const FITRESID *fr
,const double *maxerr
,const DATASET *dset
,gretlopt opt
);
int plot_simple_fcast_bands (const MODEL *pmod
,const FITRESID *fr
,const DATASET *dset
,gretlopt opt
);
int gretl_VAR_plot_impulse_response (GRETL_VAR *var
,int targ
,int shock
,int periods
,double alpha
,const DATASET *dset
,gretlopt opt
);
int gretl_VAR_plot_FEVD (GRETL_VAR *var
,int targ
,int periods
,const DATASET *dset
,gretlopt opt
);
int gretl_VAR_plot_multiple_irf (GRETL_VAR *var
,int periods
,double alpha
,const DATASET *dset
,gretlopt opt
);
int gretl_VECM_combined_EC_plot (GRETL_VAR *var
,const DATASET *dset
);
int gretl_system_residual_plot (void *p
,int ci
,int eqn
,const DATASET *dset
);
int gretl_system_residual_mplot (void *p
,int ci
,const DATASET *dset
);
int confidence_ellipse_plot (gretl_matrix *V
,double *b
,double tcrit
,double Fcrit
,double alpha
,const char *iname
,const char *jname
);
Plots a 95% confidence ellipse for the parameter estimates
in b
with covariance V
.
int xy_plot_with_control (const int *list
,const char *literal
,const DATASET *dset
,gretlopt opt
);
Constructs a scatterplot of modified Y against modified X, where the modification consists in taking the residuals from OLS regression of the variable in question on the control variable, a la Frisch-Waugh-Lovell.
list |
list of variables by ID number: Y, X, control. |
|
literal |
extra gnuplot commands or |
|
dset |
dataset struct. |
|
opt |
can add "gnuplot" options. |
int gnuplot_process_input (gretlopt opt
,PRN *prn
);
Respond to the "gnuplot" command with OPT_I
, to specify
that input should be taken from a user-created gnuplot
command file, or OPT_b
, to take input from a named
string variable.
int print_gnuplot_literal_lines (const char *s
,int ci
,gretlopt opt
,FILE *fp
);
int
gnuplot_test_command (const char *cmd
);
See if the installed version of gnuplot will accept a given command.
int transcribe_geoplot_file (const char *src
,const char *dest
,const char *datname
);
int write_tdisagg_plot (const gretl_matrix *YY
,int mult
,const char *title
,DATASET *dset
);