Skip to content

Commit a01faea

Browse files
committed
2 parents 48f99ab + e3b147a commit a01faea

File tree

6 files changed

+33
-33
lines changed

6 files changed

+33
-33
lines changed

docs/content/3d-mesh-plots.fsx

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
#r "../../bin/FSharp.Plotly.dll"
44

55
(**
6-
# FSharp.Plotly: Pie and Doughnut Charts
6+
# FSharp.Plotly: Mesh3d
77
8-
*Summary:* This example shows how to create pie and doughnut charts in F#.
8+
*Summary:* This example shows how to create 3D-Mesh charts in F#.
99
10-
A pie or a doughnut chart can be created using the `Chart.Pie` and `Chart.Doughnut` functions.
11-
When creating pie or doughnut charts, it is usually desirable to provide both labels and
12-
values.
1310
*)
1411

1512
open System
@@ -46,6 +43,8 @@ let cont = DynamicObj()
4643
cont?show <- true
4744
cont?width <- 3
4845

46+
47+
(*** define-output:mesh3d_1 ***)
4948
Trace3d.initMesh3d
5049
(fun mesh3d ->
5150
mesh3d?x <- a
@@ -56,24 +55,6 @@ Trace3d.initMesh3d
5655
mesh3d
5756
)
5857
|> GenericChart.ofTraceObject
59-
|> Chart.Show
60-
61-
62-
//(*** define-output:contour1 ***)
63-
//z
64-
//|> Chart.Surface
65-
//|> Chart.withSize(600.,600.)
66-
//(*** include-it:contour1 ***)
67-
//
68-
//// Create simple example data were x y and z is given (z is a xy-Matrix)
69-
//let x' = [0.;2.5]
70-
//let y' = [0.;2.5]
71-
//let z' = [
72-
// [1.;1.;]; // row wise (length x)
73-
// [1.;1.;];
74-
// ] // column (length y)
75-
//
76-
//Chart.Surface(z',x',y')
77-
58+
(*** include-it:mesh3d_1 ***)
7859

7960

docs/content/histograms.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ let x = [for i=0 to 500 do yield rnd.NextDouble() ]
2020
x
2121
|> Chart.Histogram
2222
|> Chart.withSize(500.,500.)
23-
//(*** include-it:histo1 ***)
24-
|> Chart.Show
23+
(*** include-it:histo1 ***)
24+
2525

docs/tools/templates/template.cshtml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,15 @@
5454
<li><a href="@Root/line-scatter-plots.html">Line and Scatter Plots</a></li>
5555
<li><a href="@Root/pie-daughnut-charts.html">Pie and Doughnut Charts</a></li>
5656
<li><a href="@Root/polar-charts.html">Polar Charts</a></li>
57-
<li><a href="@Root/windrose-charts.html">Polar Charts</a></li>
57+
<li><a href="@Root/windrose-charts.html">Windrose Charts</a></li>
5858
<li><a href="@Root/range-plots.html">Range Plots</a></li>
5959
<li class="nav-header">Plotly 3d-Charts</li>
6060
<li><a href="@Root/3d-scatter-plots.html">3D Scatter Plots</a></li>
6161
<li><a href="@Root/3d-line-plots.html">3D Line Plots</a></li>
6262
<li><a href="@Root/3d-surface-plots.html">3D Surface Plots</a></li>
63-
<li><a href="@Root/3d-mesh-plots.html">3D MEsh Plots</a></li>
63+
<li><a href="@Root/3d-mesh-plots.html">3D Mesh Plots</a></li>
64+
<li class="nav-header">Styling</li>
65+
<li><a href="@Root/shapes.html">Shapes</a></li>
6466
<li class="nav-header">Plotly WPF</li>
6567
<li><a href="@Root/plotly-wpf.html">Using Plotly PopUp window</a></li>
6668

src/FSharp.Plotly.WPF/FSharp.Plotly.WPF.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<RootNamespace>FSharp.Plotly.WPF</RootNamespace>
1111
<AssemblyName>FSharp.Plotly.WPF</AssemblyName>
1212
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
13-
<TargetFSharpCoreVersion>4.4.1.0</TargetFSharpCoreVersion>
13+
<TargetFSharpCoreVersion>4.4.0.0</TargetFSharpCoreVersion>
1414
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1515
<Name>FSharp.Plotly.WPF</Name>
1616
<TargetFrameworkProfile />

src/FSharp.Plotly/Chart.fs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,33 @@ namespace FSharp.Plotly
22

33
open System
44
open System.IO
5-
open FSharp.Care.Collections
5+
//open FSharp.Care.Collections
66

77
open GenericChart
88
open Trace
99
open Trace3d
1010

1111

12+
// ###########
13+
// Copied from FSharp.Care.Collections to remove dependancies
14+
[<AutoOpen>]
15+
module Seq =
16+
17+
/// Splits a sequence of pairs into two sequences
18+
let unzip (input:seq<_>) =
19+
let (lstA, lstB) =
20+
Seq.foldBack (fun (a,b) (accA, accB) ->
21+
a::accA, b::accB) input ([],[])
22+
(Seq.ofList lstA, Seq.ofList lstB)
23+
24+
/// Splits a sequence of triples into three sequences
25+
let unzip3 (input:seq<_>) =
26+
let (lstA, lstB, lstC) =
27+
Seq.foldBack (fun (a,b,c) (accA, accB, accC) ->
28+
a::accA, b::accB, c::accC) input ([],[],[])
29+
(Seq.ofList lstA, Seq.ofList lstB, Seq.ofList lstC)
30+
31+
1232
/// Provides a set of static methods for creating charts.
1333
type Chart =
1434

src/FSharp.Plotly/FSharp.Plotly.fsproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@
8787
<Content Include="packages.config" />
8888
</ItemGroup>
8989
<ItemGroup>
90-
<Reference Include="FSharp.Care">
91-
<HintPath>..\..\lib\FSharp.Care.dll</HintPath>
92-
</Reference>
9390
<Reference Include="mscorlib" />
9491
<Reference Include="System" />
9592
<Reference Include="System.Core" />

0 commit comments

Comments
 (0)