help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with Octave standalone


From: Markus Mützel
Subject: Re: Help with Octave standalone
Date: Sun, 15 Mar 2020 13:36:39 +0100

Am 15. März 2020 um 13:00 Uhr schrieb "Ian McCallion":
> On Fri, 13 Mar 2020 at 16:37, Ian McCallion <address@hidden> wrote:
> 
> I am having great difficulty with this and I think there is a bug in
> Octave 5.2 although I'd be happy to be proved wrong.
> 
> The script below demonstrates the problem:
> ----------------------------
>  graphics_toolkit('qt');
> myfont={'fontsize',25,'fontweight','bold'};
> mygraphs={'-dpng','-S800,800'};
> mywidegraphs={'-dpng','-S1800,800'};
> set(0, 'defaulttextfontsize', 15)
> figure(1, 'visible', 'off')
>         xrange = 1:10;
> ssd=xrange.+rand(1,10);
> plot(xrange, [ssd; mean(ssd)*ones(1,10)], 'Linewidth',2);
> legend('Actual','Average over touch')
> axis([0, xrange(end)+2, min(ssd)-5, 5+max(10,max(ssd))])
> xlabel('Row number', myfont{:})
> ylabel('Milliseconds', myfont{:})
> title('Standard Deviation (Touch only)', myfont{:})
> grid ('on')
> print (1, [graphics_toolkit, '1.png'], mywidegraphs{:})
> ------------------------
> It runs fine when launching Octave from a commandline using the command
> - c:\octave\octave-5.2.0\octave.vbs
> - C:\octave\octave-5.2.0\octave.vbs --no-gui
> - C:\octave\octave-5.2.0\mingw64\bin\octave.bat --gui
> It fails when when launching Octave from a commandline using the command
> - C:\octave\octave-5.2.0\mingw64\bin\octave.bat --no-gui
> and the resulting output is given below.
> --------------------------
> octave:6> plottest
>    *** Building graphs
> error: graphics_toolkit: qt toolkit is not available
> error: called from
>     graphics_toolkit at line 81 column 5
>     plottest at line 2 column 3
> octave:6>
> --------------------------------
> 
> The common property of the situations in which it works is that a new
> window is launched for all of them, and in the case where it does not
> work Octave "borrows" the commandline window it was launched from.
> 
> Unfortunately for me this is a show-stopper for use of 5.2.0 so I will
> be happy to run other tests as needed to help track down the problem.
> 
> Cheers... Ian

"octave.bat --no-gui" runs octave-cli.exe which isn't linked against Qt. So you 
won't be able to use "graphics_toolkit ('qt')" with it.
Use one of the other ways you've shown to start Octave to use "graphics_toolkit 
('qt')".

HTH,
Markus



reply via email to

[Prev in Thread] Current Thread [Next in Thread]