Prev: How to explain this?
Next: Write matrix to .txt, fixed space between columns based on decimalpoint
From: Susanne MD on 30 Jul 2010 12:10 "Oon-Ee " <ngoonee(a)gmail.com> wrote in message <h0scrl$c1o$1(a)fred.mathworks.com>... > A 'better' solution would be to replace 'MonitorPositions' with 'ScreenSize', which I think better represents what is being checked anyway. > > So, step-by-step for those who end up here on a google... > > In matlab, type 'edit hgrc', it will edit the file mentioned by aday above. > > Find the line which says:- > monitors = get(0, 'MonitorPositions'); > > Its line number 17 in my install (2008b). > > Change that line to the below:- > monitors = get(0, 'ScreenSize'); > > Save, and you're done. No hardcoding of anything. So, I got the error message stated above and followed the advise given and changed hgrc line from monitors = get(0, 'MonitorPositions'); to monitors = get(0, 'ScreenSize'); now, when I try to plot, say a=1:10, plot(a,a) a gray figure appears but no data is plotted. The entire plot area is the default gray. It appears that the fix is not working universally. Using Matlab R2010a on a MacBook Pro OS X
From: Susanne MD on 30 Jul 2010 12:11 "Oon-Ee " <ngoonee(a)gmail.com> wrote in message <h0scrl$c1o$1(a)fred.mathworks.com>... > A 'better' solution would be to replace 'MonitorPositions' with 'ScreenSize', which I think better represents what is being checked anyway. > > So, step-by-step for those who end up here on a google... > > In matlab, type 'edit hgrc', it will edit the file mentioned by aday above. > > Find the line which says:- > monitors = get(0, 'MonitorPositions'); > > Its line number 17 in my install (2008b). > > Change that line to the below:- > monitors = get(0, 'ScreenSize'); > > Save, and you're done. No hardcoding of anything. So, I got the error message stated above and followed the advise given and changed hgrc line from monitors = get(0, 'MonitorPositions'); to monitors = get(0, 'ScreenSize'); now, when I try to plot, say a=1:10, plot(a,a) a gray figure appears but no data is plotted. The entire plot area is the default gray. It appears that the fix is not working universally. Using Matlab R2010a on a MacBook Pro OS X
From: Susanne MD on 30 Jul 2010 12:34 "Susanne MD" <smenden(a)gso.uri.edu> wrote in message <i2utio$m4v$1(a)fred.mathworks.com>... > "Oon-Ee " <ngoonee(a)gmail.com> wrote in message <h0scrl$c1o$1(a)fred.mathworks.com>... > > A 'better' solution would be to replace 'MonitorPositions' with 'ScreenSize', which I think better represents what is being checked anyway. > > > > So, step-by-step for those who end up here on a google... > > > > In matlab, type 'edit hgrc', it will edit the file mentioned by aday above. > > > > Find the line which says:- > > monitors = get(0, 'MonitorPositions'); > > > > Its line number 17 in my install (2008b). > > > > Change that line to the below:- > > monitors = get(0, 'ScreenSize'); > > > > Save, and you're done. No hardcoding of anything. > > So, I got the error message stated above and followed the advise given and changed hgrc line from monitors = get(0, 'MonitorPositions'); to monitors = get(0, 'ScreenSize'); > > now, when I try to plot, say a=1:10, plot(a,a) a gray figure appears but no data is plotted. The entire plot area is the default gray. It appears that the fix is not working universally. Using Matlab R2010a on a MacBook Pro OS X Update, the problem appears to be in the position vector. The default provides large, negative values Position = [0.130672 0.11 -233.083 -321.191]
From: Walter Roberson on 30 Jul 2010 13:10 Susanne MD wrote: > Update, the problem appears to be in the position vector. The default > provides large, negative values > > Position = [0.130672 0.11 -233.083 -321.191] That's a known result that can happen with multiple monitors. set(0,'DefaultFigurePosition', [appropriate values]) can help.
From: Susanne MD on 30 Jul 2010 16:01 Walter Roberson <roberson(a)hushmail.com> wrote in message <OHD4o.38460$lS1.11114(a)newsfe12.iad>... > Susanne MD wrote: > > > Update, the problem appears to be in the position vector. The default > > provides large, negative values > > > > Position = [0.130672 0.11 -233.083 -321.191] > > That's a known result that can happen with multiple monitors. > set(0,'DefaultFigurePosition', [appropriate values]) > can help. Well, that seems cumbersome. There should be some basic fix. There are no multiple monitors in my set up. There is only the main screen. This error appeared spontaneously and from the number of mentions I see online, it is common.
|
Next
|
Last
Pages: 1 2 Prev: How to explain this? Next: Write matrix to .txt, fixed space between columns based on decimalpoint |