代码之家  ›  专栏  ›  技术社区  ›  user8278702

如何在Fsharp中打开和使用库:“Fsharp.Charting&&Fsharp.Charts”?

  •  3
  • user8278702  · 技术社区  · 7 年前

    我尽了最大努力在谷歌上找到了答案。但我认为这一切都与我的情况不符。 enter image description here

    请给我一个向导。非常感谢。

    谢谢大家在我困难的时候帮助我。

    2 回复  |  直到 7 年前
        1
  •  4
  •   Tomislav Markovski    7 年前

    您可以使用 #r

    #r "../packages/FSharp.Charting.0.91.1/lib/net45/FSharp.Charting.dll"
    
    open FSharp.Charting
    
        2
  •  1
  •   JosephStevens    7 年前

    右键单击Fsharp。在visual studio的“引用”部分中绘制引用,并发送到Fsharp.Interactive

    那么下面的代码就可以了

    open FSharp.Charting
    
    Chart.Line [ for x in 1.0 .. 100.0 -> (x, x ** 2.0) ]
    |> Chart.Show
    
    推荐文章