Gnuplotmodule Color : sig ... endmodule Range : sig ... endtype range = Range.t = | X of float * float| Y of float * float| XY of float * float * float * floatarguments are x1, x2, y1, y2
| XYZ of float * float * float * float * float * floatarguments are x1, x2, y1, y2, z1, z2
| Date of date * date| Time of time * time * timezone| Local_time of time * timeTime range in local time zone.
*)module Filling : sig ... endmodule Output : sig ... endmodule Labels : sig ... endThe representation of data-arrays (cf. the Series module).
type 'dim data = | Data_Y : float list -> dim2 data| Data_XY : (float * float) list -> dim2 data| Data_XYZ : (float * float * float) list -> dim3 data| Data_TimeY : (time * float) list * timezone -> dim2 data| Data_DateY : (date * float) list -> dim2 data| Data_TimeOHLC : (time * (float * float * float * float)) list
* timezone -> dim2 data| Data_DateOHLC : (date * (float * float * float * float)) list -> dim2 data| Func : string -> dim2 datamodule Series : sig ... endmodule Splots : sig ... endval create : ?verbose:bool -> ?path:string -> unit -> tcreate ?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 -> unitclose t closes the channel to the Gnuplot process.
val with_ : ?verbose:bool -> ?path:string -> (t -> 'a) -> 'aval set :
?output:Output.t ->
?title:string ->
?use_grid:bool ->
?fill:Filling.t ->
?labels:Labels.t ->
?custom:(string * string) list ->
t ->
unitset ?output ?title ?fill ?labels ?custom t sets parameters of the Gnuplot session.
unset ?fill ?labels t resets parameters of the Gnuplot session.
val plot :
?output:Output.t ->
?title:string ->
?use_grid:bool ->
?fill:Filling.t ->
?range:Range.t ->
?labels:Labels.t ->
?format:string ->
?logscale:(string * int option) ->
?custom:(string * string) list ->
t ->
Series.t ->
unitplot t series plots a single data series. The parameters for filling, range, etc are optional.
val plot_many :
?output:Output.t ->
?title:string ->
?use_grid:bool ->
?fill:Filling.t ->
?range:Range.t ->
?labels:Labels.t ->
?format:string ->
?logscale:(string * int option) ->
?custom:(string * string) list ->
t ->
Series.t list ->
unitplot_many t series creates a plot of multiple data series. The parameters for filling, range, etc are optional.
val plot_func :
?output:Output.t ->
?title:string ->
?use_grid:bool ->
?fill:Filling.t ->
?range:Range.t ->
?labels:Labels.t ->
?logscale:(string * int option) ->
?custom:(string * string) list ->
t ->
string ->
unitplot_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.
val splot :
?output:Output.t ->
?title:string ->
?use_grid:bool ->
?fill:Filling.t ->
?range:Range.t ->
?labels:Labels.t ->
?logscale:(string * int option) ->
?custom:(string * string) list ->
t ->
Splots.t ->
unitsplot t s creates a 3d plot for s. The parameters for filling, range, etc are optional.
val splot_many :
?output:Output.t ->
?title:string ->
?use_grid:bool ->
?fill:Filling.t ->
?range:Range.t ->
?labels:Labels.t ->
?logscale:(string * int option) ->
?custom:(string * string) list ->
t ->
Splots.t list ->
unitsplot_many t ls creates a 3d plot for the list of data ls. The parameters for filling, range, etc are optional.