Module Streamlines__.Local_owl_plot

Plot Module

type dsmat = Owl_dense_matrix.D.mat
type color =
| RED
| GREEN
| BLUE
type legend_typ =
| LINE
| SCATTER
| BOX
type legend_position =
| North
| South
| West
| East
| NorthWest
| NorthEast
| SouthWest
| SouthEast
type legend_item = {
mutable plot_type : legend_typ;
mutable line_style : int;
mutable line_color : int * int * int;
mutable marker : string;
mutable marker_color : int * int * int;
mutable fill_pattern : int;
mutable fill_color : int * int * int;
}
type page = {
mutable title : string;
mutable fgcolor : int * int * int;
mutable fontsize : float;
mutable is_3d : bool;
mutable no_axes : bool;
mutable xlabel : string;
mutable ylabel : string;
mutable zlabel : string;
mutable xrange : float * float;
mutable yrange : float * float;
mutable zrange : float * float;
mutable auto_xrange : bool;
mutable auto_yrange : bool;
mutable auto_zrange : bool;
mutable xticklabels : (float * string) list;
mutable yticklabels : (float * string) list;
mutable zticklabels : (float * string) list;
mutable xlogscale : bool;
mutable ylogscale : bool;
mutable xgrid : bool;
mutable ygrid : bool;
mutable zgrid : bool;
mutable altitude : float;
mutable azimuth : float;
mutable legend : bool;
mutable legend_position : legend_position;
mutable legend_items : legend_item array;
mutable legend_names : string array;
mutable plots : (unit ‑> unit) array;
}
type handle = {
mutable holdon : bool;
mutable output : string;
mutable bgcolor : int * int * int;
mutable pensize : float;
mutable page_size : int * int;
mutable shape : int * int;
mutable pages : page array;
mutable current_page : int;
}
type axis =
| X
| Y
| Z
| XY
| XZ
| YZ
| XYZ
type spec =
| RGB of int * int * int
| LineStyle of int
| LineWidth of float
| Marker of string
| MarkerSize of float
| Fill
| FillPattern of int
| Contour
| Altitude of float
| Azimuth of float
| ZLine of axis
| NoMagColor
| Curtain
| Faceted
| Axis of axis
val _get_rgb : spec list ‑> (int * int * int) ‑> int * int * int
val _get_line_style : spec list ‑> int ‑> int
val _get_line_width : spec list ‑> float ‑> float
val _get_marker : spec list ‑> string ‑> string
val _get_marker_size : spec list ‑> float ‑> float
val _get_fill : spec list ‑> bool ‑> bool
val _get_fill_pattern : spec list ‑> int ‑> int
val _get_contour : spec list ‑> bool ‑> bool
val _get_altitude : spec list ‑> float ‑> float
val _get_azimuth : spec list ‑> float ‑> float
val _get_zline : spec list ‑> Plplot.plplot3d_style_enum ‑> Plplot.plplot3d_style_enum
val _get_mag_color : spec list ‑> bool ‑> bool
val _get_curtain : spec list ‑> bool ‑> bool
val _get_faceted : spec list ‑> bool ‑> bool
val _get_axis : spec list ‑> axis ‑> axis
val _create_page : unit ‑> page
val _create_handle : unit ‑> handle
val create : ?⁠m:int ‑> ?⁠n:int ‑> string ‑> handle
val new_page : handle ‑> unit
val _default_handle : handle
val _supported_device : string list
val _set_device : handle ‑> unit
val _add_legend_item : page ‑> legend_typ ‑> int ‑> (int * int * int) ‑> string ‑> (int * int * int) ‑> int ‑> (int * int * int) ‑> unit
val _plplot_position : legend_position ‑> Plplot.plplot_position_enum list
val _draw_legend : page ‑> unit
val _calculate_paper_size : int ‑> int ‑> int * int
val _config_2d_axis : page ‑> int
val _initialise : handle ‑> unit
val _draw_ticklabels : page ‑> Plplot.plplot_axis_type ‑> float ‑> string
val _prepare_page : page ‑> unit
val _finalise : unit ‑> unit
val output : handle ‑> unit
val set_output : handle ‑> string ‑> unit
val set_title : handle ‑> string ‑> unit
val set_xlabel : handle ‑> string ‑> unit
val set_ylabel : handle ‑> string ‑> unit
val set_zlabel : handle ‑> string ‑> unit
val set_xrange : handle ‑> float ‑> float ‑> unit
val set_yrange : handle ‑> float ‑> float ‑> unit
val set_zrange : handle ‑> float ‑> float ‑> unit
val set_xticklabels : handle ‑> (float * string) list ‑> unit
val set_yticklabels : handle ‑> (float * string) list ‑> unit
val set_zticklabels : handle ‑> (float * string) list ‑> unit
val set_foreground_color : handle ‑> int ‑> int ‑> int ‑> unit
val set_background_color : handle ‑> int ‑> int ‑> int ‑> unit
val set_font_size : handle ‑> float ‑> unit
val set_pen_size : handle ‑> float ‑> unit
val set_page_size : handle ‑> int ‑> int ‑> unit
val legend_on : handle ‑> ?⁠position:legend_position ‑> string array ‑> unit
val legend_off : handle ‑> unit
val rgb : 'a option
val text : ?⁠h:handle ‑> ?⁠spec:spec list ‑> float ‑> float ‑> ?⁠dx:float ‑> ?⁠dy:float ‑> string ‑> unit
val _thinning : 'a array ‑> 'a array
val _union_range : float ‑> (float * float) ‑> float array ‑> float * float
val _adjust_range : ?⁠margin:float ‑> handle ‑> float array ‑> axis ‑> unit
val plot : ?⁠h:handle ‑> ?⁠spec:spec list ‑> Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> unit
val plot_fun : ?⁠h:handle ‑> ?⁠spec:spec list ‑> (Owl_dense_matrix.D.elt ‑> Owl_dense_matrix.D.elt) ‑> Owl_dense_matrix.D.elt ‑> Owl_dense_matrix.D.elt ‑> unit
val scatter : ?⁠h:handle ‑> ?⁠spec:spec list ‑> Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> unit
val histogram : ?⁠h:handle ‑> ?⁠spec:spec list ‑> ?⁠bin:int ‑> Owl_dense_matrix.D.mat ‑> unit
val subplot : handle ‑> int ‑> int ‑> unit
val stem : ?⁠h:handle ‑> ?⁠spec:spec list ‑> Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> unit
val autocorr : ?⁠h:handle ‑> ?⁠spec:spec list ‑> Owl_dense_matrix.D.mat ‑> unit
val draw_line : ?⁠h:handle ‑> ?⁠spec:spec list ‑> float ‑> float ‑> float ‑> float ‑> unit
val plot_multi : 'a option
val _draw_error_bar : ?⁠w:float ‑> float ‑> float ‑> float ‑> unit
val error_bar : ?⁠h:handle ‑> ?⁠spec:spec list ‑> Owl_dense_matrix.D.mat ‑> (float, Bigarray.float64_elt) Owl_dense_matrix_generic.t ‑> (float, Bigarray.float64_elt) Owl_dense_matrix_generic.t ‑> unit
val _draw_whiskers_box : float ‑> float ‑> float array ‑> unit
val boxplot : ?⁠h:handle ‑> ?⁠spec:spec list ‑> Owl_dense_matrix.D.mat ‑> unit
val _draw_bar : float ‑> float ‑> float ‑> unit
val draw_rect : ?⁠h:handle ‑> ?⁠spec:spec list ‑> float ‑> float ‑> float ‑> float ‑> unit
val bar : ?⁠h:handle ‑> ?⁠spec:spec list ‑> Owl_dense_matrix.D.mat ‑> unit
val area : ?⁠h:handle ‑> ?⁠spec:spec list ‑> Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> unit
val draw_polygon : ?⁠h:handle ‑> ?⁠spec:spec list ‑> Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> unit
val _ecdf_interleave : float array ‑> int ‑> float array
val ecdf : ?⁠h:handle ‑> ?⁠spec:spec list ‑> Owl_dense_matrix.D.mat ‑> unit
val stairs : ?⁠h:handle ‑> ?⁠spec:spec list ‑> Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> unit
val draw_circle : ?⁠h:handle ‑> ?⁠spec:spec list ‑> float ‑> float ‑> float ‑> unit
val _draw_arc : 'a ‑> float ‑> float array ‑> unit
val pie : ?⁠h:handle ‑> ?⁠spec:spec list ‑> Owl_dense_matrix.D.mat ‑> unit
val loglog : ?⁠h:handle ‑> ?⁠spec:spec list ‑> ?⁠x:Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> unit
val semilogx : ?⁠h:handle ‑> ?⁠spec:spec list ‑> ?⁠x:Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> unit
val semilogy : ?⁠h:handle ‑> ?⁠spec:spec list ‑> ?⁠x:Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> unit
val surf : ?⁠h:handle ‑> ?⁠spec:spec list ‑> Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> unit
val plot3d : ?⁠h:handle ‑> ?⁠spec:spec list ‑> Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> unit
val mesh : ?⁠h:handle ‑> ?⁠spec:spec list ‑> Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> unit
val heatmap : ?⁠h:handle ‑> Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> unit
val contour : ?⁠h:handle ‑> Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> unit
val _draw_extended_line : float ‑> float ‑> float ‑> float ‑> float ‑> float ‑> float ‑> float ‑> unit
val probplot : ?⁠h:handle ‑> ?⁠spec:spec list ‑> ?⁠dist:(Owl_dense_matrix.D.elt ‑> Owl_dense_matrix.D.elt) ‑> ?⁠noref:bool ‑> Owl_dense_matrix.D.mat ‑> unit
val normplot : ?⁠h:handle ‑> ?⁠spec:spec list ‑> ?⁠sigma:float ‑> Owl_dense_matrix.D.mat ‑> unit
val wblplot : ?⁠h:handle ‑> ?⁠spec:spec list ‑> ?⁠lambda:float ‑> ?⁠k:float ‑> Owl_dense_matrix.D.mat ‑> unit
val _ecdf_dist : 'a array ‑> 'b array ‑> 'b ‑> 'a
val qqplot : ?⁠h:handle ‑> ?⁠spec:spec list ‑> ?⁠pd:(Owl_dense_matrix.D.elt ‑> Owl_dense_matrix.D.elt) ‑> ?⁠x:Owl_dense_matrix.D.mat ‑> Owl_dense_matrix.D.mat ‑> unit
val scatterhist : 'a option
val image : ?⁠h:handle ‑> Owl_dense_matrix.D.mat ‑> unit
val spy : ?⁠h:handle ‑> ?⁠spec:spec list ‑> Owl_dense_matrix.D.mat ‑> unit
val image_boundary : handle ‑> 'a ‑> 'b ‑> float ‑> float ‑> 'c ‑> 'd ‑> unit
val image_set_page_size : handle ‑> 'a ‑> 'b ‑> float ‑> float ‑> 'c ‑> 'd ‑> unit
val remove_axes : handle ‑> unit
val image_remove_axes : 'a ‑> page ‑> 'b ‑> 'c ‑> 'd ‑> 'e ‑> 'f ‑> unit
val cmap_grey : (float * (float * float * float)) list
val cmap_terrain : (float * (float * float * float)) list
val set_cmap : ?⁠masked:float ‑> ?⁠alpha:float ‑> ?⁠num_col:int ‑> (float * (float * float * float)) list ‑> 'a ‑> 'b ‑> 'c ‑> 'd ‑> 'e ‑> 'f ‑> unit
val gjs_image : h:handle ‑> ?⁠preplot_options:(handle ‑> page ‑> Owl_dense_matrix.D.elt array array ‑> float ‑> float ‑> Owl_dense_matrix.D.elt ‑> Owl_dense_matrix.D.elt ‑> unit) list ‑> ?⁠plot_options:(page ‑> Owl_dense_matrix.D.elt array array ‑> float ‑> float ‑> Owl_dense_matrix.D.elt ‑> Owl_dense_matrix.D.elt ‑> unit) list ‑> Owl_dense_matrix.D.mat ‑> unit
val add_plplot : h:handle ‑> (unit ‑> unit) ‑> unit
val colors : (string * (int * int * int)) list
val color_of_name : string ‑> int * int * int
val plsyms : (string * int) list
val plsym_of_marker : string ‑> int