Re: Preventing figure focus stealing in Linux
- From: "Steven_Lord" <slord@xxxxxxxxxxxxx>
- Date: Wed, 1 Dec 2010 09:58:09 -0500
"Christian Schultz" <spamcatcher@xxxxxxxxxxxxxxxxxxxx> wrote in message news:id5dnd$3a3$1@xxxxxxxxxxxxxxxxxxxxx
I'm doing several plot commands in a lengthy for loop, and I do not want to bring the plot windows to focus everytime I plot in them. I tried to download this m-file http://www.mathworks.com/matlabcentral/fileexchange/8919-smartsilent-figure but to no avail. I also tried set(0, 'CurrentFigure', figure_handle); before each plot, but this still brings the figure into focus. It's quite frustrating that I cannot use other programs while running my script because my figures keep stealing focus. How can I change this? I'm using Ubuntu 10.04
How are you plotting into your figures? Are you calling the FIGURE function? If so, the behavior you're seeing is the documented and expected behavior. See paragraphs 2 and 4 in the Description section of the function reference page for FIGURE:
http://www.mathworks.com/help/techdoc/ref/figure.html
If you're calling FIGURE _and_ using the SET command, then it's not the SET that's bringing the figure to the foreground but the FIGURE call.
One approach to consider, depending on what window manager you're using and whether or not your application requires user interaction, is running MATLAB on one desktop and running your other programs on another.
http://userbase.kde.org/Glossary#Virtual_Desktops
On a sidenote: Is it possible to specify somewhere in Matlab that I always want to launch the editor so it is visible in the lower panel that shows currently running programs? I find it annoying that this feature is not on by default.
The answer to that is probably going to depend on what window manager you're using.
--
Steve Lord
slord@xxxxxxxxxxxxx
To contact Technical Support use the Contact Us link on http://www.mathworks.com
.
- Follow-Ups:
- Re: Preventing figure focus stealing in Linux
- From: Christian Schultz
- Re: Preventing figure focus stealing in Linux
- References:
- Preventing figure focus stealing in Linux
- From: Christian Schultz
- Preventing figure focus stealing in Linux
- Prev by Date: matlabpool fails to open (2009b Mac OS X)
- Next by Date: read specific line from text file
- Previous by thread: Preventing figure focus stealing in Linux
- Next by thread: Re: Preventing figure focus stealing in Linux
- Index(es):
Relevant Pages
|