help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clearing graphics - missing commands?


From: Juan Pablo Carbajal
Subject: Re: Clearing graphics - missing commands?
Date: Sat, 4 Aug 2012 00:21:15 +0200

On Fri, Aug 3, 2012 at 11:12 PM, Charles Bradshaw
<address@hidden> wrote:
> I'm doing repeated simple plots like this:
>   x=[...];
>   y=[...]; # x and y change between calls
>   handle=plot(x,y,"3-o","markersize",2);
>
> Axes are previously initialises like this:
>   clf();
>   h=plot(0,0,"3-o","markersize",2);
>   axis([-2,7,-2,2],'square');
>   grid('on');
>   hold('on');
>
> The application is a mechanism simulator and requires each 'line' to be
> erased before the next is plotted. Ideally, this should be as fast as
> possible and flicker free. I see in the manual the command cla(handle) where
> handle is returned from plot. However when I execute cla octave issues:
>
>   error: `cla' undefined near line 26 column 1
>
> As evidenced by the command:
>
>   stuf==get(handle)
>   stuf =
>   {
>     tag =
>     type = line
>     ...
>   }
>
> handle is indeed a pointer to the most recently plotted line. I also tried
> delete(handle) which just deletes the local copy and has no effect on the
> graphics.
>
> I'm running octave 3.0.0 and I think I'm using gnuplot, although I also have
> fltk installed, but the command graphics_toolkit is missing, although
> described in the manual.
>
> Is there another way to delete the previous drawn line without
> re-initialising the axes?
>
>
>
> --
> View this message in context: 
> http://octave.1599824.n4.nabble.com/Clearing-graphics-missing-commands-tp4632128.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave

The manual you are mentioning probably corresponds to newer versions
of GNU Octave (currently we are in 3.6.2)
I had this problem too and it was fixed in 3.6. Please update if possible.


-- 
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]