How can I fix the position of a figure (non movable figure)?
16 views (last 30 days)
Show older comments
Hi,
I want a figure as overlay to another software. I managed to set the figure always on top and not resizable. In addition I now need to fix the position of the figure on the screen. (I want to avoid a loop which always checks the position and sets it to its original position.)
Any idea?
0 Comments
Answers (2)
KSSV
on 25 Oct 2016
Open a figure...place at the position you want....use:
pos = get(gcf,'position');
pos is 4X1 array, which describes your desired location. Next time when ever you open any figure, you can change it's position using:
set(gcf, 'Position',pos);
Read about position.
3 Comments
Fredrik Mile
on 2 Mar 2018
Hello!
I'm facing the same problems right now, did you find a solution for this?
Thanks
1 Comment
Marko Hecht
on 18 Jan 2019
Edited: Marko Hecht
on 18 Jan 2019
If you are still looking looking for an answer, perhaps this works:
set(gcf,'Position',[x y w h],'Resize','off');
See Also
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!