Menu

get(0,"CurrentFigure") always return [ ]

Help
2007-03-15
2013-04-25
  • Nobody/Anonymous

    Hello

    I used the following code in octave:

    plot([0:1:10],[0:1:10].^2);
    b=get(0,"CurrentFigure");

    Octave result:
    b= [](0x1)

    Why is that? This problem causes octave to open a new plot window everytime I call gcf().
       
    I use octave version 2.1.73 and gnuplot 4.0 patchlevel 0

    Thank you for your help!!!!!!!!!!!

    Michael

     
    • Shai Ayal

      Shai Ayal - 2007-03-15

      Are you using ocplot?
      what version of octplot and how did you compile?
      what OS?

      Shai

       
    • Nobody/Anonymous

      Hello

      I'am using:
      - Ubuntu 6.10 Edgy Eft
      - octplot Version 0.3.9-2ubuntu1(edgy) (precompiled package)
      - octave 2.1.73 (precompiled package)
      - gnuplot 4.0 patchlevel 0 (precompiled package)

      I hope this helps.

      Michael

       
      • Shai Ayal

        Shai Ayal - 2007-03-17

        1. what happnes if you try to use gcf()? -- if it works, have a look at gcf.m (type gcf.m)
        2. If it still doesn't work, can you try to compile the current svn version?

        Shai

         

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.