Re: Slow plotting on last plot



Randy,

I previously used the draw now command and yes, it does update, but I
still get the 100% CPU usage. I don't quite understand it. I'm
guessing its a windows/MATLAB problem, but don't know what it is. I
might just uninstall and try reinstalling.

Jesse

Randy Poe wrote:



Jesse Lai wrote:
I have some plots that I generate in a for loop because I'm
cyling
through a dataset and generating individual plots for each
column.
I've noticed that on my computer the last plot generated takes
forever to update. My system hangs with 100% CPU usage for
almost
a
minute before the final plot is generated. It isn't specific to
any
single plot. If I add a plot after the loop, then that
additional
plot takes the time to generate instead of the previous one.

I'm using R2006a.

Has anyone else noticed this behaviour or how to fix it? I'm
open
to
suggestions.

Perhaps it has something to do with the queuing of graphics
commands. Often graphics updates are not performed
immediately but queued up and then performed in a block
later, during an idle interval.

Try putting "drawnow;" inside the loop after each plot
command.

HELP DRAWNOW for more info.

The fact that it takes nearly a minute to execute all the
graphics suggests you have a very complex plot. If so, you
might find with DRAWNOW that the overall time is still
the same, but each iteration now takes a significant fraction
of a second.

- Randy


.



Relevant Pages

  • Re: 3D Animation question
    ... Would these two tools help with what I am trying to create? ... If you want to see an actual soccer ball with labels and markings and color, things are a bit more challenging (this will be true no matter what package you use to do the animation). ... The text command gives a 2D string that should always face the camera, but I do not know for sure. ...
    (comp.soft-sys.matlab)
  • Re: Java is becoming the new Cobol
    ... VSAM) While I could do command line, the menus and panels were a heck ... graphics card in addition to the 512 meg main memory. ... Graphics just wasn't feasible for end user interface. ...
    (comp.lang.cobol)
  • Re: Penguinistas to the bridge, please.
    ... There is also an app called EnvyNG which can sometimes help by providing a graphical front end to do a custom compilation of the graphics drivers for your chamine, but it isn't much use if you don't have a supported graphics chipset, and it isn't installed by default. ... You only have to type sudo into an Ubuntu terminal when you are diagnosing a system with recalcitrant hardware or re-configuring a system in a nunusual way. ... This doesn't stop lots of people posting howtos with terminal commands when there are perfectly good ways of doing the same thing in a GUI, but a lot of the people capable of figuring such things out will do so from the command line and create the howto from the terminal log. ... Install all the latest updates using update manager at system>administration>update manager. ...
    (uk.rec.sheds)
  • Re: RGB color of command button control (what grey is it?)
    ... > the command buttons. ... > I built each graphics in .png and then export it in .bmp. ... I means that the grey I use for the canvas of my picture is ... Also because when I built the graphic and I ...
    (microsoft.public.access.forms)
  • Re: Where does OpenGL live?
    ... I assume that the command travels from my code to JOGL, ... into pieces that the graphics card can understand. ... Does the "hardware acceleration" for OpenGL occur automatically (by ... I know that my CPUs are not responsible for the rendering and that I'm ...
    (comp.graphics.api.opengl)

Loading