XPlot


Multiple Chart Types

Full source and data

A Contour and Scatter Plot of the Method of Steepest Descent

 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: 
let trace1 =
    Contour(
        z = z1,
        x = x1,
        y = y1,
        ncontours = 30,
        showscale = false
    )

let trace2 =
    Scatter(
        x = x2,
        y = y2,
        mode = "markers+lines",
        name = "steepest",
        line = Line(color = "black")
    )

let layout = Layout(title = "A Contour and Scatter Plot of the Method of Steepest Descent")

[trace1 :> Trace; trace2 :> Trace]
|> Chart.Plot
|> Chart.WithLayout layout
|> Chart.WithWidth 700
|> Chart.WithHeight 500

Line Chart and a Bar Chart

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
let trace1' =
    Scatter(
        x = [0; 1; 2; 3; 4; 5],
        y = [1.5; 1.; 1.3; 0.7; 0.8; 0.9]
    ) :> Trace

let trace2' =
    Bar(
        x = [0; 1; 2; 3; 4; 5],
        y = [1.; 0.5; 0.7; -1.2; 0.3; 0.4]
    ) :> Trace

let multiLayout = Layout(title = "Line Chart and a Bar Chart")

[trace1'; trace2']
|> Chart.Plot
|> Chart.WithLayout multiLayout
|> Chart.WithWidth 700
|> Chart.WithHeight 500
Fork me on GitHub