XPlot


Plotly Histograms

Basic Histogram

1: 
2: 
3: 
4: 
5: 
let basicData = Data([Histogram(x = basicX)])

let basicLayout = Layout(title = "Basic Histogram")

Figure(basicData, basicLayout)

Horizontal Histogram

1: 
2: 
3: 
4: 
5: 
let horizontalData = Data([Histogram(y = horizontalY)])

let horizontalLayout = Layout(title = "Horizontal Histogram")

Figure(horizontalData, horizontalLayout)

Overlaid Histogram

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
let overlaidTrace1 =
    Histogram(
        x = overlaidX0,
        opacity = 0.75
    )

let overlaidTrace2 =
    Histogram(
        x = overlaidX1,
        opacity = 0.75
    )

let overlaidLayout =
    Layout(
        barmode = "overlay",
        title = "Overlaid Histogram"
    )

Figure(Data.From [overlaidTrace1; overlaidTrace2], overlaidLayout)

Stacked Histograms

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
let stackedTrace1 = Histogram(x = stackedX0)

let stackedTrace2 = Histogram(x = stackedX1)

let stackedLayout =
    Layout(
        barmode = "stack",
        title = "Stacked Histograms"
    )

Figure(Data.From [stackedTrace1; stackedTrace2], stackedLayout)

Colored and Styled Histograms

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20: 
21: 
22: 
23: 
24: 
25: 
26: 
27: 
28: 
29: 
30: 
31: 
32: 
33: 
34: 
35: 
36: 
37: 
38: 
39: 
40: 
41: 
42: 
43: 
44: 
45: 
46: 
47: 
48: 
49: 
50: 
let coloredTrace1 =
    Histogram(
        x = coloredX0,
        histnorm = "count",
        name = "control",
        autobinx = false,
        xbins =
            XBins(
                start = -3.2,
                ``end`` = 2.8,
                size = 0.2
            ),
        marker =
            Marker(
                color = "fuchsia",
                line =
                    Line(
                        color = "grey",
                        width = 0
                    ),
                opacity = 0.75
            )
    )

let coloredTrace2 =
    Histogram(
        x = coloredX1,
        name = "experimental",
        autobinx = false,
        xbins =
            XBins(
                start = -1.8,
                ``end`` = 4.2,
                size = 0.2
            ),
        marker = Marker(color = "rgb(255, 217, 102)"),
        opacity = 0.75
    )

let coloredLayout =
    Layout(
        title = "Colored and Styled Histograms",
        xaxis = XAxis(title = "Value"),
        yaxis = YAxis(title = "Count"),
        barmode = "overlay",
        bargap = 0.25,
        bargroupgap = 0.3
    )

Figure(Data.From [coloredTrace1; coloredTrace2], coloredLayout)
namespace XPlot
namespace XPlot.Plotly
namespace MathNet
namespace MathNet.Numerics
namespace MathNet.Numerics.Distributions
type Plotly =
  private new : unit -> Plotly
  static member Signin : username:string * password:string -> unit

Full name: XPlot.Plotly.Plotly
static member Plotly.Signin : username:string * password:string -> unit
module MyCredentials
val userAndKey : string * string

Full name: MyCredentials.userAndKey
val normal : Normal

Full name: Plotly-histograms.normal
Multiple items
type Normal =
  new : unit -> Normal + 3 overloads
  member CumulativeDistribution : x:float -> float
  member Density : x:float -> float
  member DensityLn : x:float -> float
  member Entropy : float
  member InverseCumulativeDistribution : p:float -> float
  member Maximum : float
  member Mean : float
  member Median : float
  member Minimum : float
  ...

Full name: MathNet.Numerics.Distributions.Normal

--------------------
Normal() : unit
Normal(randomSource: System.Random) : unit
Normal(mean: float, stddev: float) : unit
Normal(mean: float, stddev: float, randomSource: System.Random) : unit
val basicX : float []

Full name: Plotly-histograms.basicX
Normal.Samples() : System.Collections.Generic.IEnumerable<float>
Normal.Samples(values: float []) : unit
module Seq

from Microsoft.FSharp.Collections
val take : count:int -> source:seq<'T> -> seq<'T>

Full name: Microsoft.FSharp.Collections.Seq.take
val toArray : source:seq<'T> -> 'T []

Full name: Microsoft.FSharp.Collections.Seq.toArray
val horizontalY : float []

Full name: Plotly-histograms.horizontalY
val overlaidX0 : float []

Full name: Plotly-histograms.overlaidX0
val overlaidX1 : float []

Full name: Plotly-histograms.overlaidX1
module Array

from Microsoft.FSharp.Collections
val map : mapping:('T -> 'U) -> array:'T [] -> 'U []

Full name: Microsoft.FSharp.Collections.Array.map
val x : float
val stackedX0 : float []

Full name: Plotly-histograms.stackedX0
val stackedX1 : float []

Full name: Plotly-histograms.stackedX1
val coloredX0 : float []

Full name: Plotly-histograms.coloredX0
val coloredX1 : float []

Full name: Plotly-histograms.coloredX1
val basicData : Data

Full name: Plotly-histograms.basicData
Multiple items
namespace Microsoft.FSharp.Data

--------------------
type Data =
  new : traces:seq<Trace> -> Data
  member Json : string
  static member From : traces:seq<#Trace> -> Data

Full name: XPlot.Plotly.Data

--------------------
new : traces:seq<Trace> -> Data
Multiple items
type Histogram =
  inherit Trace
  new : unit -> Histogram
  member ShouldSerializeautobinx : unit -> bool
  member ShouldSerializeautobiny : unit -> bool
  member ShouldSerializeerror_x : unit -> bool
  member ShouldSerializeerror_y : unit -> bool
  member ShouldSerializehistfunc : unit -> bool
  member ShouldSerializehistnorm : unit -> bool
  member ShouldSerializemarker : unit -> bool
  member ShouldSerializename : unit -> bool
  ...

Full name: XPlot.Plotly.Graph.Histogram

--------------------
new : unit -> Histogram
property Histogram.x: obj
val basicLayout : Layout

Full name: Plotly-histograms.basicLayout
Multiple items
type Layout =
  new : unit -> Layout
  member ShouldSerializeangularaxis : unit -> bool
  member ShouldSerializeannotations : unit -> bool
  member ShouldSerializeautosize : unit -> bool
  member ShouldSerializebargap : unit -> bool
  member ShouldSerializebargroupgap : unit -> bool
  member ShouldSerializebarmode : unit -> bool
  member ShouldSerializebarnorm : unit -> bool
  member ShouldSerializeboxgap : unit -> bool
  member ShouldSerializeboxgroupgap : unit -> bool
  ...

Full name: XPlot.Plotly.Graph.Layout

--------------------
new : unit -> Layout
Multiple items
type Figure =
  new : data:Data * ?Layout:Layout -> Figure
  member GetInlineHtml : filename:string -> string
  member Plot : filename:string -> PlotlyResponse option
  member Fileopt : string
  member Height : int
  member Layout : Layout option
  member Origin : string
  member Response : PlotlyResponse option
  member Width : int
  member Fileopt : string with set
  ...

Full name: XPlot.Plotly.Figure

--------------------
new : data:Data * ?Layout:Layout -> Figure
val horizontalData : Data

Full name: Plotly-histograms.horizontalData
property Histogram.y: obj
val horizontalLayout : Layout

Full name: Plotly-histograms.horizontalLayout
val overlaidTrace1 : Histogram

Full name: Plotly-histograms.overlaidTrace1
val overlaidTrace2 : Histogram

Full name: Plotly-histograms.overlaidTrace2
val overlaidLayout : Layout

Full name: Plotly-histograms.overlaidLayout
static member Data.From : traces:seq<#Trace> -> Data
val stackedTrace1 : Histogram

Full name: Plotly-histograms.stackedTrace1
val stackedTrace2 : Histogram

Full name: Plotly-histograms.stackedTrace2
val stackedLayout : Layout

Full name: Plotly-histograms.stackedLayout
val coloredTrace1 : Histogram

Full name: Plotly-histograms.coloredTrace1
Multiple items
type XBins =
  new : unit -> XBins
  member ShouldSerializeend : unit -> bool
  member ShouldSerializesize : unit -> bool
  member ShouldSerializestart : unit -> bool
  member end : float
  member size : float
  member start : float
  member end : float with set
  member size : float with set
  member start : float with set

Full name: XPlot.Plotly.Graph.XBins

--------------------
new : unit -> XBins
Multiple items
type Marker =
  new : unit -> Marker
  member ShouldSerializecauto : unit -> bool
  member ShouldSerializecmax : unit -> bool
  member ShouldSerializecmin : unit -> bool
  member ShouldSerializecolor : unit -> bool
  member ShouldSerializecolorscale : unit -> bool
  member ShouldSerializeline : unit -> bool
  member ShouldSerializemaxdisplayed : unit -> bool
  member ShouldSerializeopacity : unit -> bool
  member ShouldSerializeoutliercolor : unit -> bool
  ...

Full name: XPlot.Plotly.Graph.Marker

--------------------
new : unit -> Marker
Multiple items
type Line =
  new : unit -> Line
  member ShouldSerializecolor : unit -> bool
  member ShouldSerializedash : unit -> bool
  member ShouldSerializeopacity : unit -> bool
  member ShouldSerializeoutliercolor : unit -> bool
  member ShouldSerializeoutlierwidth : unit -> bool
  member ShouldSerializeshape : unit -> bool
  member ShouldSerializesmoothing : unit -> bool
  member ShouldSerializewidth : unit -> bool
  member color : obj
  ...

Full name: XPlot.Plotly.Graph.Line

--------------------
new : unit -> Line
val coloredTrace2 : Histogram

Full name: Plotly-histograms.coloredTrace2
val coloredLayout : Layout

Full name: Plotly-histograms.coloredLayout
Multiple items
type XAxis =
  new : unit -> XAxis
  member ShouldSerializeanchor : unit -> bool
  member ShouldSerializeautorange : unit -> bool
  member ShouldSerializeautotick : unit -> bool
  member ShouldSerializebackgroundcolor : unit -> bool
  member ShouldSerializedomain : unit -> bool
  member ShouldSerializedtick : unit -> bool
  member ShouldSerializeexponentformat : unit -> bool
  member ShouldSerializegridcolor : unit -> bool
  member ShouldSerializegridwidth : unit -> bool
  ...

Full name: XPlot.Plotly.Graph.XAxis

--------------------
new : unit -> XAxis
Multiple items
type YAxis =
  new : unit -> YAxis
  member ShouldSerializeanchor : unit -> bool
  member ShouldSerializeautorange : unit -> bool
  member ShouldSerializeautotick : unit -> bool
  member ShouldSerializebackgroundcolor : unit -> bool
  member ShouldSerializedomain : unit -> bool
  member ShouldSerializedtick : unit -> bool
  member ShouldSerializeexponentformat : unit -> bool
  member ShouldSerializegridcolor : unit -> bool
  member ShouldSerializegridwidth : unit -> bool
  ...

Full name: XPlot.Plotly.Graph.YAxis

--------------------
new : unit -> YAxis
Fork me on GitHub