Cannot editing plots in Linux system with two monitors
显示 更早的评论
Hi, As the title says, I can not edit the plot in matlab, when I double click the plot to edit, the plot is killed with these error messages on the browser:
java.lang.IllegalArgumentException: adding a container to a container on a different GraphicsDevice
at java.awt.Component.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)
at com.mathworks.mwswing.desk.DTMaximizedPane.add(DTMaximizedPane.java:50)
at com.mathworks.mwswing.desk.DTDocumentContainer.add(DTDocumentContainer.java:370)
at com.mathworks.mwswing.desk.DTGroupFrame.add(DTGroupFrame.java:198)
at com.mathworks.mwswing.desk.DTMultipleClientFrame.addClient(DTMultipleClientFrame.java:349)
at com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:6144)
at com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5913)
at com.mathworks.mwswing.desk.Desktop.setClientDocked(Desktop.java:1527)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.mathworks.mwswing.desk.Desktop$DeferredFacadeProxy.invoke(Desktop.java:7234)
at $Proxy0.setClientDocked(Unknown Source)
at com.mathworks.mwswing.desk.Desktop.setClientDocked(Desktop.java:1434)
at com.mathworks.hg.peer.FigureClientProxy.setClientWindowStyle(FigureClientProxy.java:684)
at com.mathworks.hg.peer.FigureMediator.setClientWindowStyle(FigureMediator.java:305)
at com.mathworks.hg.peer.FigurePeer.doSetWindowStyle(FigurePeer.java:2648)
at com.mathworks.hg.peer.FigurePeer$3.run(FigurePeer.java:914)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runit(HGPeerQueue.java:228)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runNotThese(HGPeerQueue.java:260)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.run(HGPeerQueue.java:276)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)|*
Does anyone have a solution? Thanks a lot
3 个评论
Daniel Shub
2011-11-23
Can you edit the plot if you disable/mirror the second monitor?
Chunling
2011-11-25
Daniel Shub
2011-11-25
What Linux distribution (e.g., Ubunutu and Fedora) are you using? What desktop environment are you using (e.g., Gnome and KDE)? What version of Java are you using?
You may want to post this the answers to these questions in your new thread. The problem, at this point, has nothing to do with dual monitors.
回答(1 个)
Soner Ulun
2012-12-26
0 个投票
If you docked the figures to the figures to the desktop of matlab it might have created the issue, at least it did it for me.
You might use "set(0,'DefaultFigureWindowStyle','normal')" to set it back right.
类别
在 帮助中心 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!