octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #42039] "erasemode" - "none"; when animating p


From: Daniel
Subject: [Octave-bug-tracker] [bug #42039] "erasemode" - "none"; when animating plots
Date: Thu, 03 Apr 2014 13:30:32 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.6 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?42039>

                 Summary: "erasemode" - "none"; when animating plots 
                 Project: GNU Octave
            Submitted by: no_use1
            Submitted on: Do 03 Apr 2014 13:30:31 GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Daniel
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.1
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Hello, 

I wrote an quick&dirty code to illustrate: 


val = [1 1 2 2] 
h = line(val(1:2),val(3:4),'linewidth',5,'color','r'); hold on;
axis([-50 50 -50 50])
set(h,'erasemode','none');

for i = 1:10
 val([1,3]) += [1,4];
 val([2 4]) -= [2,1];
 set(h, 'xdata', val(1:2), 'ydata',val(3:4)) 
 pause(1);
 drawnow;
endfor


The command 
set(h,'erasemode','none');
should do the following (according to Matlab doc):

none — Do not erase the line when it is moved or destroyed. While the object
is still visible on the screen after erasing with EraseMode none, you cannot
print it, because MATLAB stores no information about its former location.


However, the former lines are not visible on the screen after new coordinates
are set. 

Sorry in case I did a mistake.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42039>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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