bugGNU Octave - Bugs: bug #62736, The function 'hold on' isn't...

 
 

bug #62736: The function 'hold on' isn't working.

Submitter:  None
Submitted:  Sun 10 Jul 2022 03:26:26 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Works For Me Assigned to:  None
Originator Name:  Daniel Cendales Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 7.1.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 11 Jul 2022 01:54:30 AM UTC, comment #2: 

Try the suggestion in comment #1 (adding "drawnow" to your script).

This is likely to be some quirk with the OpenGl driver, your particular hardware, and possibly the operating system.  If "hold on" were not working there would be a huge number of bug reports.

Rik <rik5>
Group administrator
Sun 10 Jul 2022 11:10:28 AM UTC, comment #1: 

Add the line "drawnow" to the end of your code.

Anonymous
Sun 10 Jul 2022 03:26:26 AM UTC, original submission:  

First of all, thank you for your help.

I'm trying to print two curves in the same graphic. This is the code


t = [0:0.01:0.98];
y1 = sin(8*pi*t);
y2 = cos(8*pi*t);

plot(t, y1);
hold on;
plot(t, y2);


The problem is that the second curve doesn't appear. Or if I try:


t = [0:0.01:0.98];
y1 = sin(8*pi*t);

plot(t, y1, 'r');


It doesn't show anything. I'm using octave version: 7.1.0 in a Ubuntu 20.04 based distro (bodhy linux).

If I try the same thing in other distro (Arch linux) it works!

I think that may be I'm missing some dependency, but can't figure it out what is.

Thank you for your help. Note: I don't speak english, sorry if I said something wrong


Anonymous

 

(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 None (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-07-18 rik5 StatusNone Works For Me
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code