triforcely / Octave.NET

📈 More than cross-platform Octave process wrapper 🔬
MIT License
32 stars 7 forks source link

The graphical interface cannot be displayed #15

Closed fangwancong closed 3 years ago

fangwancong commented 3 years ago

I run the following commands on Octave-GUI, everything works fine and shows a 3D pattern interface. If I execute with Octave.NET, there is no graphical interface displayed.

[x, y, z] = sphere (40); surf (3x, 3y, 3*z); axis equal; title ("sphere of radius 3");

triforcely commented 3 years ago

You need to hold the execution until the plot is closed

https://github.com/triforcely/Octave.NET/blob/master/examples/Octave.NET.Examples.DisplayPlot/Program.cs

fangwancong commented 3 years ago

You need to hold the execution until the plot is closed

https://github.com/triforcely/Octave.NET/blob/master/examples/Octave.NET.Examples.DisplayPlot/Program.cs

Unfortunately, I ran the example above but it still doesn't work, I copy the above script to octave-cli to run it works, I don't know why it does, I'm using version 6.2.0 and windows platform.

fangwancong commented 3 years ago

Some updates when I uninstall 6.2.0 and then install 5.2.0, it works and I think it's because it's not compatible with 6.2.0.

triforcely commented 3 years ago

There is nothing that can be incompatible. After all, Octave.NET just proxies your commands to octave-cli.