글
MATLAB에서 Figure docking (default)
MATLAB을 사용하다보면 figure를 main GUI에 docking하고 싶을 때가 있다. (default로..)
아래를 참조하면 된다!!
I just wanted to pass along a small tip that you might find useful. If you’ve become as big of a fan of docked figures as I have, you might be looking for a way to have figures docked by default when they are created. This is easy to do (but not obvious) by modifying default figure properties. The following command will cause all subsequent new figures in the current MATLAB session to open docked:
Put this command in your startup.m file for this to be the default behavior for every MATLAB session.
Don’t like it?
This will set things back to normal.
Want to understand how this command works?
This is the standard graphics set command. The first argument is the handle to the root graphics object, i.e. the screen. This applies to all subequently generated graphics objects. When a figure is docked, it’s WindowStyle property is set to ‘docked’. Since this is a Figure property, I can modify it’s default behavior by appending DefaultFigure to WindowStyle. Hence,
* Ref.
[1] http://blogs.mathworks.com/pick/2005/11/15/default-docked-figures/
'Skills > Programming' 카테고리의 다른 글
[OpenGL] 3D coordinates from 2D mouse click ( Convert Screen Coordinate to World Coordinate ) (0) | 2015.06.22 |
---|---|
KB954430 자꾸만 다시 설치하라고 할 때.. (0) | 2015.06.08 |
[Assertion failed] wincore.cpp error line 952 (0) | 2015.01.15 |
C++ 반전 연산자~와 논리 연산자 !의 차이 (0) | 2014.12.16 |
공유 메모리를 이용한 IPC (0) | 2014.12.15 |