Matlab will only use upper left corner when laptop is disconnect from large display how do I reset plotting to use the entire figure

조회 수: 33 (최근 30일)
Matlab 2015b. When I disconnect my laptop (Mac book pro ) from my large monitor, and use the laptop the plotting is hosed. What happens is the plot only occupies the user left had corner of the figure window.
The only way I have found to fix this is to bring Matlab down and restart it. Is there a method other than restarting Matlab to fix the plotting so that it uses the entire figure window when I disconnect the laptop from the large monitor.

채택된 답변

Image Analyst
Image Analyst 2016년 1월 11일
See what happens if you minimize it and then maximize it.

추가 답변 (1개)

Kelly Kearney
Kelly Kearney 2016년 1월 11일
Unfortunately, no. Matlab only checks for screen size, monitor position, resolution, etc once when it first starts, and all its subsequent plotting assumes this to stay constant. So if you add or remove a display, you need to restart Matlab to get the appropriate behavior.
I've reported this, and related dual-monitor problems, to the Mathworks before. Their response has always been that Matlab does not officially support multiple monitors, so we're out of luck. That's always been mildly annoying, though it's become more so with the new handle graphics for the reason you mention.
  댓글 수: 4
Dahai Xue
Dahai Xue 2018년 11월 12일
I am using 2018b, and I don't think anything has been done for this. I started my laptop with connected external monitor with the builtin monitor closed/off, and start MatLab on that external monitor. Using get(groot, 'ScreenSize'), I only get the monitor size of the builtin monitor, and my GUI behaves just like that. It has been confusing when I started my GUI on a Desktop with similar monitors, when the figure looks much smaller.
Kristin Fitzmorris
Kristin Fitzmorris 2022년 4월 2일
I'm using 2019b and still running into this issue. Would be great to at least understand how MATLAB determines the numer of monitors when staring up, so I could write my own function to reset the number of monitors if I disconnect my laptop.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by