Re: Preventing figure focus stealing in Linux





"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

.



Relevant Pages

  • Re: Questions regarding Octave
    ... haven't found out how to zoom in/out on a plot window). ... FWIW, what I mean is that generally a Remote Desktop window, ... interfaced through my laptop, of my desktop machine. ...
    (comp.dsp)
  • Re: Fast Line Plot Routine
    ... I'm writing a E-Scope App that displays waves in a window. ... from time to time or us a sprite and plot that frequently? ... how many line segments is your wave composed of when plotting ...
    (comp.sys.acorn.programmer)
  • Strange Question Revisited.
    ... The main subject was what course the sun would plot in a picture if the camera is pointed exactly south. ... A suggestion in the thread was to plot the sun on a south facing window. ...
    (rec.photo.digital.slr-systems)
  • Re: Feature Request: Reparent the gnuplot window on X11-based displays
    ... Reparent the gnuplot window. ... gnuplot plot window in a separate qt widget. ... This terminal supports an enhanced text mode, which allows font and other ...
    (comp.graphics.apps.gnuplot)
  • Re: kde vs gnome
    ... By the way the KDE window manager by itself is ... applications that minimizes the desktop clutter and automatically ...
    (comp.unix.bsd.freebsd.misc)