Author(s): David Trallero Mena.
This library uses gnuplot for printing graphs.
Two predicates are provided:
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 leyend, 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(list(X))
Usage: generate_plot(BaseName, TimeList)
BaseName + .ps' postcript file using each element of TimeList 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 TimeList can be a list of pairs instead of a pair for comodity. gnuplot is used as ausiliary 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)
TimeList is a list of pairs.
(basic_props:list/2)
BaseName is currently instantiated to an atom.
(term_typing:atom/1)
TimeList is a list of pairs.
(basic_props:list/2)
Usage: generate_plot(BaseName, TimeList, GeneralOptions)
GeneralOptions are used as the general options of the plot. Look at predicate set_general_options for detailed description of posible options
BaseName is currently instantiated to an atom.
(term_typing:atom/1)
TimeList 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)
TimeList 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.