Is there anyway to get Matlab to evenly space figure windows when they are created? or at least not stack them.
Also If I could have them go to my second monitor, that would be even better
Will
|
|
0
|
|
|
|
Reply
|
William
|
12/9/2010 5:08:05 PM |
|
On 09/12/10 11:08 AM, William wrote:
> Is there anyway to get Matlab to evenly space figure windows when they
> are created? or at least not stack them.
>
> Also If I could have them go to my second monitor, that would be even
> better
Yes, you could create a root property for the DefaultFigureOpenFcn and
set it to a function that used findall(0,'Type','figure') to determine
the existing figure locations; get() their Position properties and
figure out where there is some free screen real-estate and set() the
figure Position to be there.
You can get(0,'MonitorPosition') to determine the positions of your
monitors (though apparently on Windows there tends to be errors in what
is reported for multiple monitors.)
There is no Matlab setting that tells it how to space new figures apart
from each other: on the contrary, there is a setting to tell it the
exact (constant) coordinates to put figures at by default.
The closest you might possibly get to automatic positioning is if you
set your preferences so that figures were docked in the desktop. I don't
know the mechanics of that as I personally prefer undocked figures.
|
|
0
|
|
|
|
Reply
|
Walter
|
12/9/2010 5:32:53 PM
|
|
Hi William,
There is a way you can get the figure windows to tile/overlap using code in
a MATLAB script or function.
Please try the following:
left = 100;
top = 600;
width = 500;
height = 300;
delta = 40;
basePos = [ left, top, width, height ];
offset = [ delta, -delta, 0, 0 ];
N = 5;
fig = zeros(N,1);
ax = zeros(N,1);
for k = 1:N
fig(k) = figure('position',basePos + (k-1)*offset);
ax(k) = axes;
end
plot(ax(1),randn(10,1));
stem(ax(2),randn(20,1));
....
....
HTH.
Rick
"William " <willjhenry@gmail.com> wrote in message
news:idr2dl$9j$1@fred.mathworks.com...
> Is there anyway to get Matlab to evenly space figure windows when they are
> created? or at least not stack them.
>
> Also If I could have them go to my second monitor, that would be even
> better
>
> Will
>
|
|
0
|
|
|
|
Reply
|
Rick
|
12/9/2010 6:25:10 PM
|
|
|
2 Replies
185 Views
(page loaded in 0.312 seconds)
Similiar Articles: fixed label position? - comp.graphics.apps.gnuplotCan I somehow let gnuplot calculate the position depending on the fixed axis (and not by the ... Position of figure windows - not "stacking" - comp.soft-sys.matlab ... Matlab ... resize figure window - comp.soft-sys.matlabI tried setting the figure position but this did not work exactly the same as using ... However, the figure does not fit into the figure window that opens up (figure is ... using gui slider to display 3d image stack - comp.soft-sys.matlab ...... D MRI image (represented as a stack of ... I think my problems are that the figure is not ... get(slider1,'Value'); % returns position of slider % Display the image in a figure ... figure labels position -> 'auto' ? - comp.soft-sys.matlab ...Hi, For better plots (IMHO) I want to change the layout of figures, in particular the position ... Auto Window Decals | Family Labels... Stickers, Pet Decals, Family Car ... guide: how to open a full-screen window? - comp.soft-sys.matlab ...% minfig(F,1) % minimizes the figure window for the figure with handle F ... - The outer position with window border fills the screen. - The inner position fills the ... Multiple overlapping viewports - comp.graphics.api.opengl ...... You know that's a really good argument; my position is ... F, is always a multiple ... create another "window" (not in ... Multiple Overlapping Viewports Flickering - Stack ... multiple GUI position - comp.soft-sys.matlabHow can I choose, between many open figures and windows, what is in front? ... this causes the Gui Submit command to store the position of ... Creating Multiple GUI Windows. Edit Box becomes invisible after printing - comp.soft-sys.matlab ...L = {'Style','edit','Units','Pixels','Position'}; S.fh = figure('Units','Pixels','Position ... MCR in Windows 7 Not Working - comp.soft-sys.matlab Edit Box becomes ... Copy Figure in Mac OS X - Matlab 2009b - comp.soft-sys.matlab ...But the copy figure option does not behave the same way as it works in corresponding windows version. ... area in the borders in the target location. On windows ... Adjust window's scroll position depending on which link ...- The outer position with window border fills the ... Create a MEX which set the window ... Delete all ... set(gcf, 'Position', get(0,'Screensize')); % Maximize figure. ... Create figure graphics object - MATLAB - MathWorks - MATLAB and ...figure(h) Make the figure h current, but do not change its visibility or stacking with respect to other figures: ... To position the full figure window including the menu bar ... Define figure properties - MATLAB - MathWorks - MATLAB and ...Specifies the size and location on the screen of the figure window, not including title bar ... Stacking Order of Modal Figures. Creating a figure with WindowStyle modal ... 7/9/2012 11:35:58 AM
|