Module Vz_plot.Plot

Plots

type t

The type for cartesian plots.

val empty : t

The type for cartesian plots.

val v : ?w:float -> ?h:float -> ('a Marks.t * 'a Evidence.Dataset.t) list -> t

v ?w ?h () is a plot with given attributes:

  • w is the plot width including margins. If unspecified this is 160mm.
  • h is the plot's height. If unspecified this is determined by the plot's vertical scales.
val over : t -> t -> t
val to_image : t -> Gg.Box2.t * Vg.image

to_image t is an image for the plot and its extents (including margins). The plot's lower-left corner (including margin) is at the origin.