bugGNU Octave - Bugs: bug #34359, Problems with hold

 
 

bug #34359: Problems with hold

Submitted by:  Kai Habel <kahacjde>
Submitted on:  Thu 22 Sep 2011 07:16:59 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: InvalidAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 23 Sep 2011 07:25:00 PM UTC, comment #2:

Rik,
thanks for pointing this out, now I remember reading this before. Interestingly matlab (2008a) does replace the line and 1st patch object with the 2nd red patch. But I think we can ignore it, since the documentation is clear. I will use fill for the tests now.

Kai

P.S. I have closed this report

Kai Habel <kahacjde>
Project Member
Fri 23 Sep 2011 04:36:13 AM UTC, comment #1:

This seems to be the documented behavior. See http://www.mathworks.com/help/techdoc/ref/patch.html.

In particular, this quoted section

"Unlike high-level area creation functions, such as fill or area, patch does not check the settings of the figure and axes NextPlot properties. It simply adds the patch object to the current axes."

I verified that fill() does replace the existing plot.

Rik <rik5>
Project Administrator
Thu 22 Sep 2011 07:16:59 PM UTC, original submission:

While writing tests for hold and related functions I came across the following problem with gnuplot and fltk.

figure
l=line;
hold on
p=patch
hold off
get(gca,'nextplot')
p=patch([0 1 0], [0 1 1], "red");

Now you can see both patches and the line still be drawn. But I think that only the red patch should be visible.

The nextplot property of the current axis is set correctly to "replace" after hold off

Kai

Kai Habel <kahacjde>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 23 Sep 2011 07:25:00 PM UTCkahacjdeStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1