Octave plot from Qt C++ application

前端 未结 2 1481
星月不相逢
星月不相逢 2021-01-13 13:55

I have a QT C++ application that runs the Octave program using QProcess. I am able to communicate with it by reading the standard output/error and writing to it\'s standard

相关标签:
2条回答
  • 2021-01-13 14:29

    Octave, like Matlab, can be run in batch mode to perform computations without graphical UI. I assume that Octave detects that it is not run from an interactive session, and therefore automatically goes into batch mode. You would expect Octave to suppress graphical output (e.g. gnuplot output) when being in batch mode.

    Try to force Octave into interactive mode by using the --interactive command line option: http://www.gnu.org/software/octave/doc/interpreter/Command-Line-Options.html

    0 讨论(0)
  • 2021-01-13 14:31

    I know you probably already solved your problem but this might be helpful for other... You can try to add a command to save your plot in a temporary folder in your octave request. Then display the graph in your ap

    0 讨论(0)
提交回复
热议问题