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

13 次查看(过去 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
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 中查找有关 Graphics Performance 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by