xjview tips: window size - how to change and how to resize

45 views
Skip to first unread message

Xu Cui

unread,
Oct 18, 2011, 4:54:49 PM10/18/11
to xjview-dis...@googlegroups.com
You may find xjview window size is too small or too wide on your screen for various reasons (e.g. dual monitors). Below is how to change it:

1. How to change the size:
You can change window size by changing the figurePosition property in xjview.m. Find the line:
figurePosition =                    [0.100,   0.050,    0.660,    0.880];
The 3rd and 4th number control the size (width and height relative to the entire screen)

2. How to resize
xjview window doesn't resize by default. But you can change this behavior by modifying xjview.m. Find the line below and change 'resize' 'off' to 'on'

f = figure('unit','normalized','position',figurePosition,'Color',figureBKcolor,'defaultuicontrolBackgroundColor', figureBKcolor,...
        'Name','xjView', 'NumberTitle','off','resize','off','CloseRequestFcn', {@CallBack_quit, warnstate(1).state}, 'visible','off', 'DoubleBuffer','on');

Best,
Xu

--
----------------------------------------------------------------
Xu Cui
Department of Psychiatry and Behavioral Sciences
Stanford University
Blog: http://www.alivelearn.net
Profile: http://www.peaya.com/p/?cuixu
----------------------------------------------------------------

Reply all
Reply to author
Forward
0 new messages