Gnuplot
module Color : sig ... end
module Range : sig ... end
type range = Range.t =
| X of float * float
| Y of float * float
| XY of float * float * float * float
arguments are x1, x2, y1, y2
| XYZ of float * float * float * float * float * float
arguments are x1, x2, y1, y2, z1, z2
| Date of date * date
| Time of time * time * timezone
| Local_time of time * time
Time range in local time zone.
*)module Filling : sig ... end
module Output : sig ... end
module Labels : sig ... end
The 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 data
module Series : sig ... end
module Splots : sig ... end
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 with_ : ?verbose:bool -> ?path:string -> (t -> 'a) -> 'a
val set :
?output:Output.t ->
?title:string ->
?use_grid:bool ->
?fill:Filling.t ->
?labels:Labels.t ->
?custom:(string * string) list ->
t ->
unit
set ?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 ->
unit
plot 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 ->
unit
plot_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 ->
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.
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 ->
unit
splot 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 ->
unit
splot_many t ls
creates a 3d plot for the list of data ls
. The parameters for filling, range, etc are optional.