Author(s): David Trallero Mena.
This library uses gnuplot for printing graphs.
User-friendly predicates to generate data plots are provided, as well as predicates to set the general options which govern the generation of such plots. If no options is specified, global ones are used for data plots generation.
Several files can be generated as temporary files. A BaseName is required for generating the temporaries files. Data files name will be created from BaseName + number + .dat. The BaseName + ".plot" will be the name used for gnuplot tool.
A list of pairs of list of pairs of the from (X,Y) and Local Option value is provided to the main predicate as data. In other words DataList = [(CurveDataList,LocalOptions), (CurveDataList1,LocalOptions1) ...]. Additionaly (function( String ) , LocalOptions) can be used for adding a curve to the plot (imagine you want to compare your result with 'x=y').
LocalOptions of the DataList are options that are applied to the curve, as for example, if we print the curve with lines, or the title in the legend, etc. GlobalOptions are referred to the plot options, like title in x or y axis, etc.
gnuplot)gnuplot)
Usage: get_general_options(X)
X is a free variable.
(term_typing:var/1)
X is a list.
(basic_props:list/1)
Usage: set_general_options(X)
X is a list.
(basic_props:list/1)
Usage: generate_plot(BaseName, DataList)
BaseName + .ps' postscript file using each element of DataList as pair of list of pairs and local options, i.e., ( list((X,Y)), LocalOptions), in which X is the position in X-Axis and Y is the position in Y-Axis. Nevertheless, each element of DataList can be a list of pairs instead of a pair for commodity. gnuplot is used as auxiliary tool. Temporary files 'BaseName + N.dat' are generated for for every list of pairs, and 'BaseName + .plot' is de file used by gnuplot. The local options can be:
BaseName is currently instantiated to an atom.
(term_typing:atom/1)
DataList is a list of pairs.
(basic_props:list/2)
BaseName is currently instantiated to an atom.
(term_typing:atom/1)
DataList is a list of pairs.
(basic_props:list/2)
Usage: generate_plot(BaseName, DataList, GeneralOptions)
GeneralOptions are used as the general options of the plot. Look at predicate set_general_options for detailed description of possible options
BaseName is currently instantiated to an atom.
(term_typing:atom/1)
DataList is a list of pairs.
(basic_props:list/2)
GeneralOptions is a list.
(basic_props:list/1)
BaseName is currently instantiated to an atom.
(term_typing:atom/1)
DataList is a list of pairs.
(basic_props:list/2)
GeneralOptions is a list.
(basic_props:list/1)
Go to the first, previous, next, last section, table of contents.