Module Gnuplot.Gp

module Gp: sig .. end

type t 
A wrapper for calling Gnuplot from OCaml.
val create : ?verbose:bool -> ?path:string -> unit -> t
create ?verbose ?path () creates a channel to a Gnuplot process with the executable given by path. If verbose is true then plotting commands print debug information on standard output.
val close : t -> unit
close t closes the channel to the Gnuplot process.
val set : ?output:Gnuplot.Output.t ->
?title:string ->
?use_grid:bool ->
?fill:Gnuplot.Filling.t -> ?labels:Gnuplot.Labels.t -> t -> unit
set ?output ?title ?fill t sets parameters of the Gnuplot session.
val unset : ?fill:Gnuplot.Filling.t -> ?labels:Gnuplot.Labels.t -> t -> unit
unset ?fill ?labels t resets parameters of the Gnuplot session.
val plot : ?output:Gnuplot.Output.t ->
?title:string ->
?use_grid:bool ->
?fill:Gnuplot.Filling.t ->
?range:Gnuplot.Range.t ->
?labels:Gnuplot.Labels.t ->
?format:string -> t -> Gnuplot.Series.t -> unit
plot t series plots a single data series. The parameters for filling, range, etc are optional.
val plot_many : ?output:Gnuplot.Output.t ->
?title:string ->
?use_grid:bool ->
?fill:Gnuplot.Filling.t ->
?range:Gnuplot.Range.t ->
?labels:Gnuplot.Labels.t ->
?format:string -> t -> Gnuplot.Series.t list -> unit
plot_many t series creates a plot of multiple data series. The parameters for filling, range, etc are optional.
val plot_func : ?output:Gnuplot.Output.t ->
?title:string ->
?use_grid:bool ->
?fill:Gnuplot.Filling.t ->
?range:Gnuplot.Range.t ->
?labels:Gnuplot.Labels.t -> t -> string -> unit
plot_func t f draws a graph of the function f given as a string. The function f has to be specified in the Gnuplot format, eg `sin(x)`. The parameters for the filling, range, etc are optional.