Page 1 of 1

Octave graphics windows jammed during 'press any key' event [SOLVED]

Posted: Wed Jan 13, 2021 8:39 am
by jarkky
jari@ENVY-17:~/bin$ ./plotspeed_mat_1day.m
During 'press any key' event:

Code: Select all

printf("Press any key to exit.\n");
The graphics windows can not be scaled/stretched and the graphic windows menus are not working effectively:
Initial image:
Window stretched:
If I press key, it will exit the graphics window.
It should stretch (including the contents) when its waiting the key pressed.
Also I should be able to save the graphics contents when waiting the key pressed.

jari@ENVY-17:~/bin$ octave
octave:1> plotspeed_mat_1day

What it should look stretched:
This case if I press key, it will not exit the graphics and I can then stretch the window size freely so that the contents follow.
Also the 'text scaling' of the labels&title needs some considerations...
I hope to find how to prevent this 'lock down' of graphics during kbhit().

Also the pdf&png export case the text fonts didn't see to be in their place in same manner than on the graphics window displayed:

Re: Octave graphics windows jammed during 'press any key' event

Posted: Mon Jan 18, 2021 9:16 pm
by jarkky
It looks solution is using command 'pause()' instead of 'kbhit()'...