From: Mayi DA on 16 Jul 2010 09:45 Dear all Today, I met with a problem that MATLAB can crop something of a figure. Following code is an example: h = figure('menubar', 'none', 'toolbar', 'none', 'position', [0, 0, 600 450]); movegui(h, 'center'); plot(rand(10,2)); xlabel('This is X label'); now, you will see a normal figure that contained two plot line and xlabel string. however, continue to run: set(h, 'menubar','figure', 'toolbar', 'figure'); then you will find that matlab has cropped something, at lease you cannot see xlabel string now. how to avoid this? it is a bug in MATLAB? mayi 2010-07-16
From: Mayi DA on 18 Jul 2010 02:24 Dear all Can anyone verify my example code? My MATLAB version is 2010A (WIN), and an internet friend told me that his MATLAB 2009A (Unix) is OK for my example code. best regards mayi 2010-07-18 "Mayi DA" <spam(a)gmail.com> wrote in message <i1pnph$rsr$1(a)fred.mathworks.com>... > Dear all > Today, I met with a problem that MATLAB can crop something of a figure. Following code is an example: > h = figure('menubar', 'none', 'toolbar', 'none', 'position', [0, 0, 600 450]); > movegui(h, 'center'); > plot(rand(10,2)); > xlabel('This is X label'); > > now, you will see a normal figure that contained two plot line and xlabel string. > however, continue to run: > set(h, 'menubar','figure', 'toolbar', 'figure'); > > then you will find that matlab has cropped something, at lease you cannot see xlabel string now. > > how to avoid this? it is a bug in MATLAB? > > mayi > 2010-07-16
|
Pages: 1 Prev: infinite loop Next: How to repeat a vector to creat a matrix |