package gnuplot

  1. Overview
  2. Docs

Module Gnuplot.SeriesSource

Sourcetype t

Represents a series of data for the plot functions in the Gp module.

Sourceval lines : ?title:string -> ?color:Color.t -> ?weight:int -> float list -> t

lines data creates a data series for a line plot of Y values.

Sourceval lines_xy : ?title:string -> ?color:Color.t -> ?weight:int -> (float * float) list -> t

lines_xy data creates a data series for a line plot of X and Y values.

Sourceval lines_timey : ?title:string -> ?color:Color.t -> ?weight:int -> zone:timezone -> (time * float) list -> t

lines_timey ~zone data creates a data series for a line plot with time axis in the given time zone.

Sourceval lines_datey : ?title:string -> ?color:Color.t -> ?weight:int -> (date * float) list -> t

lines_datey data creates a data series for a line plot of date and Y values.

Sourceval lines_func : ?title:string -> ?color:Color.t -> ?weight:int -> string -> t

lines_func f creates a data series for a line plot of the values given by a function f specified in the Gnuplot format, eg `sin(x)`. The X values come from the range object that was supplied to one of the plot functions in the Gp module.

Sourceval points : ?title:string -> ?color:Color.t -> ?weight:int -> float list -> t

points data creates a data series for a point plot of Y values.

Sourceval points_xy : ?title:string -> ?color:Color.t -> ?weight:int -> (float * float) list -> t

points_xy data creates a data series for a point plot of X and Y values.

Sourceval points_timey : ?title:string -> ?color:Color.t -> ?weight:int -> zone:timezone -> (time * float) list -> t

points_timey ~zone data creates a data series for a point plot with time axis in the given time zone.

Sourceval points_datey : ?title:string -> ?color:Color.t -> ?weight:int -> (date * float) list -> t

points_datey data creates a data series for a point plot of date and Y values.

Sourceval points_func : ?title:string -> ?color:Color.t -> ?weight:int -> string -> t

points_func f creates a data series for a point plot of the values given by a function f specified in the Gnuplot format, eg `sin(x)`. The X values come from the range object that was supplied to one of the plot functions in the Gp module below.

Sourceval linespoints : ?title:string -> ?color:Color.t -> ?weight:int -> float list -> t

linespoints data creates a data series for a lines and points plot of Y values.

Sourceval linespoints_xy : ?title:string -> ?color:Color.t -> ?weight:int -> (float * float) list -> t

linespoints_xy data creates a data series for a lines and points plot of X and Y values.

Sourceval linespoints_timey : ?title:string -> ?color:Color.t -> ?weight:int -> zone:timezone -> (time * float) list -> t

linespoints_timey ~zone data creates a data series for a lines and points plot with time axis in the given time zone.

Sourceval linespoints_datey : ?title:string -> ?color:Color.t -> ?weight:int -> (date * float) list -> t

linespoints_datey data creates a data series for a lines and points plot of date and Y values.

Sourceval linespoints_func : ?title:string -> ?color:Color.t -> ?weight:int -> string -> t

linespoints_func f creates a data series for a lines and points plot of the values given by a function f specified in the Gnuplot format, eg `sin(x)`. The X values come from the range object that was supplied to one of the plot functions in the Gp module below.

Sourceval steps : ?title:string -> ?color:Color.t -> ?weight:int -> float list -> t

steps data creates a data series for a step function of Y values.

Sourceval steps_xy : ?title:string -> ?color:Color.t -> ?weight:int -> (float * float) list -> t

steps_xy data creates a data series for a step function of X and Y values.

Sourceval steps_timey : ?title:string -> ?color:Color.t -> ?weight:int -> zone:timezone -> (time * float) list -> t

steps_timey ~zone data creates a data series for a step function with time axis in the given time zone.

Sourceval steps_datey : ?title:string -> ?color:Color.t -> ?weight:int -> (date * float) list -> t

steps_datey data creates a data series for a step function of date and Y values.

Sourceval histogram : ?title:string -> ?color:Color.t -> ?weight:int -> ?fill:Filling.t -> float list -> t

histogram data creates a data series for a histogram of Y values.

Sourceval candles_time_ohlc : ?title:string -> ?color:Color.t -> ?weight:int -> ?fill:Filling.t -> zone:timezone -> (time * (float * float * float * float)) list -> t

candles_time_ohlc ~zone data creates a data series for a candlestick chart with time axis in the given time zone.

Sourceval candles_date_ohlc : ?title:string -> ?color:Color.t -> ?weight:int -> ?fill:Filling.t -> (date * (float * float * float * float)) list -> t

candles_date_ohlc data creates a data series for a candlestick chart indexed by date.

OCaml

Innovation. Community. Security.