In [2]:
#N "MathNet.Numerics"
#N "MathNet.Numerics.FSharp"
#N "IfSharp.Charting/0.1.0-alpha/pre"

open MathNet.Numerics
open IfSharp.Charting

App.AddDisplayPrinter (fun (x: IfSharp.Charting.ChartTypes.ChartBase) -> 
    { ContentType = "text/html"; Data = x.ToHtml()})


Out[2]:
NuGet package: MathNet.Numerics
Out[2]:
Referenced Framework: System.Numerics
Out[2]:
Referenced: C:\Users\dave\Documents\Visual Studio 2013\Projects\IfSharp.Charting\packages\MathNet.Numerics.3.5.0\lib\net40\MathNet.Numerics.dll
Out[2]:
NuGet package: MathNet.Numerics.FSharp
Out[2]:
Referenced Framework: System.Numerics
Out[2]:
Referenced: C:\Users\dave\Documents\Visual Studio 2013\Projects\IfSharp.Charting\packages\MathNet.Numerics.FSharp.3.5.0\lib\net40\MathNet.Numerics.FSharp.dll
Out[2]:
NuGet package: IfSharp.Charting
Out[2]:
Referenced: C:\Users\dave\Documents\Visual Studio 2013\Projects\IfSharp.Charting\packages\IfSharp.Charting.0.1.0-alpha\lib\net40\IfSharp.Charting.dll

In [3]:
Line.create [ for i in 0. .. 10. -> i, i*i ]


Out[3]:

In [4]:
Histogram.create [ for i in 0. .. 500. do yield Distributions.Normal.Sample( 30., 20.) ]


Out[4]:

In [5]:
Line.create [ for i in 0. .. 100. -> i, sin(i / 10.)]
|> Line.addSeries [ for i in 0. .. 100. -> i, 0.5 * cos (i / 10.)]
|> Line.xLabel "Time (ms)"
|> Line.yLabel "Voltage (v)"
|> Line.xExtendedTicks true
|> Line.legend ["Sine Wave"; "Cosine Wave"]


Out[5]:

In [ ]: