bugGNU Octave - Bugs: bug #42039, "erasemode" -...

 
 

bug #42039: "erasemode" - "none"; when animating plots

Submitter:  Daniel <no_use1>
Submitted:  Thu 03 Apr 2014 01:30:31 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Daniel Open/Closed:  * Closed
Release:  * 3.8.1 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 05 Jul 2016 11:41:06 PM UTC, comment #2: 

Matlab no longer supports erasemode, and Octave won't either.  Closing report.

Rik <rik5>
Group administrator
Thu 24 Apr 2014 04:46:51 PM UTC, comment #1: 

Confirmed.

I'm afraid Octave supports getting/setting the property value only.  There is no actual graphic rendering code that takes into account the value of erasemode.  I don't think too many people use this feature, since you were the first to report it, so it probably won't be fixed until someone takes an active interest in it.  The file to start with in octave is probably gl-render.cc.

Rik <rik5>
Group administrator
Thu 03 Apr 2014 01:30:31 PM UTC, original submission:  

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.

Daniel <no_use1>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by no_use1 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-05 rik5 StatusConfirmed Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2014-04-24 rik5 CategoryNone Plotting
        StatusNone Confirmed
        Operating SystemMicrosoft Windows Any

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code