-
Notifications
You must be signed in to change notification settings - Fork 81
/
3_0_3d-scatter-plots.fsx
46 lines (32 loc) · 1.07 KB
/
3_0_3d-scatter-plots.fsx
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
(*** hide ***)
(*** condition: prepare ***)
#r "nuget: Newtonsoft.JSON, 12.0.3"
#r "../bin/Plotly.NET/netstandard2.0/Plotly.NET.dll"
(*** condition: ipynb ***)
#if IPYNB
#r "nuget: Plotly.NET, {{fsdocs-package-version}}"
#r "nuget: Plotly.NET.Interactive, {{fsdocs-package-version}}"
#endif // IPYNB
(**
# 3D Scatter charts
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/plotly/Plotly.NET/gh-pages?filepath=3_0_3d-scatter-plots.ipynb)
*Summary:* This example shows how to create three-dimensional scatter charts in F#.
A Scatter3d chart report shows a three-dimensional spinnable view of your data
*)
open Plotly.NET
let x = [19; 26; 55;]
let y = [19; 26; 55;]
let z = [19; 26; 55;]
let scatter3d =
Chart.Scatter3d(x,y,z,StyleParam.Mode.Markers)
|> Chart.withX_AxisStyle("my x-axis")
|> Chart.withY_AxisStyle("my y-axis")
|> Chart.withZ_AxisStyle("my z-axis")
|> Chart.withSize(800.,800.)
(*** condition: ipynb ***)
#if IPYNB
scatter3d
#endif // IPYNB
(***hide***)
scatter3d |> GenericChart.toChartHTML
(*** include-it-raw ***)