Menu

using octave/octaviz from a script

Help
2006-12-19
2013-04-22
  • Christian T. Steigies

    Hi,
    I found octaviz only recently and I must say it is pretty neat. I do have a few problems/questions though.

    First, I want to run octave/octaviz from a makefile, since another program is creating the m file which is then used by octave. However, when I run octave with a script, that performs the octaviz plot, or paste the commands to execute to octave, octave performs those commands but quits immediately after this, closing the vtk window. Is there a way to prevent this, ie to run octave from a script, but not exiting octave once it is done with the script (or keeping the vtk window open so I can rotate or zoom into the plot)?

    Second, using the vtk window is fairly intuitive, click somewhere with some mousebutton and something happens. I found that shift allows me to move the viewport and that "w" and "s" change the way the data is plotted. Are there other keystrokes or mouse commands available? Is there a list of available commands somewhere or instructions on what you can do with mouse and keyboard? Something like a home button maybe in case you got lost in the figure?

    BTW, are there special requirements on the graphics board? At work, the demos work fine, but on my low-power EPIA machine, I can only see the axis but no colour cubes, etc.

    Thanks,
    Christian

     
    • Jonathan Stickel

      1.  Running from scripts:  You can try using the "pause" command.  You could ask on the octave-help list also.

      2.  Commands in vtk window:  http://www.vtk.org/doc/release/5.0/html/a01650.html (scroll down to the first set of text).  This should be documented elsewhere.  I'll try to remember to add it to octaviz docs at some point.

      3.  Graphics board:  shouldn't matter much.  I have seen some strange things, but it seems to be related to the opengl implementation.  For example, on one of my machines using vtk_print to export to pdf wasn't working for awhile.

      HTH,
      Jonathan

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.