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

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
jarkky
Level 2
Level 2
Posts: 73
Joined: Fri Oct 30, 2020 10:49 am
Location: Philippines

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

Post 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");
kbhit();
The graphics windows can not be scaled/stretched and the graphic windows menus are not working effectively:
Initial image:
WIN1.png
Window stretched:
WIN2.png
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:
WIN3.png
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:
Last edited by jarkky on Mon Jan 18, 2021 9:16 pm, edited 1 time in total.
jarkky
Level 2
Level 2
Posts: 73
Joined: Fri Oct 30, 2020 10:49 am
Location: Philippines

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

Post by jarkky »

It looks solution is using command 'pause()' instead of 'kbhit()'...
Post Reply

Return to “Software & Applications”