Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Charts XPlot:如何显示和导出图表?_Charts_.net Core_F#_Plotly_Fslab - Fatal编程技术网

Charts XPlot:如何显示和导出图表?

Charts XPlot:如何显示和导出图表?,charts,.net-core,f#,plotly,fslab,Charts,.net Core,F#,Plotly,Fslab,我在macOS上有一个简单的.NET核心控制台项目,它具有paket.dependencies storage: symlink source https://www.nuget.org/api/v2 nuget FsLab 和paket.references FsLab 和程序 open XPlot.Plotly [<EntryPoint>] let main argv = [1 .. 10] |> Chart.Line |> Chart.Show

我在macOS上有一个简单的.NET核心控制台项目,它具有
paket.dependencies

storage: symlink
source https://www.nuget.org/api/v2
nuget FsLab
paket.references

FsLab
和程序

open XPlot.Plotly
[<EntryPoint>]
let main argv =
    [1 .. 10] |> Chart.Line |> Chart.Show
    0
还有一堆相似的,然后是错误

Unhandled Exception: System.ComponentModel.Win32Exception: Permission denied
at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setUser, UInt32 userId, UInt32 groupId, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at XPlot.Plotly.Html.showInBrowser(String html, String pageId)
at XPlot.Plotly.Chart.Show(PlotlyChart chart)
at Program.main(String[] argv)
看起来它正在试图在浏览器中显示图表。我有三个问题:

  • 发生了什么事
  • 如何使其显示在浏览器中
  • 如何以编程方式将图表导出到文件(例如PNG)

  • 我能够在Windows上复制该问题。它似乎与FsLab和.NET Core.Related有关浏览一下,看看是否可以在没有4.6.1的情况下运行它。这可能是不可能的,因为它的目标是.netstandard而不是.netcore()。
    Unhandled Exception: System.ComponentModel.Win32Exception: Permission denied
    at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setUser, UInt32 userId, UInt32 groupId, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow)
    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
    at XPlot.Plotly.Html.showInBrowser(String html, String pageId)
    at XPlot.Plotly.Chart.Show(PlotlyChart chart)
    at Program.main(String[] argv)