bugGNU Octave - Bugs: bug #38989, Pause called after plot results in...


bug #38989: Pause called after plot results in empty figure window until pause resolved

Submitted by:  Colin Beckingham <colbec>
Submitted on:  Tue May 14 19:58:08 2013  
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: Works For MeAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.6.4Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Thu Sep 25 02:11:39 2014, comment #5:

Closing this inactive bug report as working. Colin, if this issue continues to be a problem or recurs for you, feel free to open a new bug report with updated details.

Mike Miller <mtmiller>
Project Administrator
Wed Jun 19 09:43:28 2013, comment #4:

Thanks much. If I find any more details will post back.

Colin Beckingham <colbec>
Tue Jun 18 23:50:36 2013, comment #3:

I still get working results using your new script plot_pause2.m. Because of the figure() command I get a new figure for each plot. I tried running the script 4 times in a row and reached Figure 12 without a problem.

I have no doubt that something is going on, but my guess is that it is somewhow specific to your system. In particular, you said that you had to add the return statement to avoid using Ctrl+C. That is clearly broken. I tried your script with and without that line and it worked correctly for me.

Unfortunately I'm not sure what advice to give you. It might be gnuplot, it might be the way octave was compiled on your system, or since this involves communication via pipes it might even be your kernel. Too many variables to really narrow things down.

Rik <rik5>
Project Administrator
Tue Jun 18 18:43:57 2013, comment #2:

Agreed, your script works properly. I have another script that is similar but shows the behaviour I observe. This one involves the figure() instruction which appears to be significant. I also added a return since without it I had to use ctrl+c to move on.

Thanks for helping refine the issue.

start Octave

Observed behaviour:
In the initial run of plot_pause all 3 figures are painted correctly
In the second and subsequent runs of plot_pause in the same Octave session, one of the figures is not drawn.

(file #28345)

Colin Beckingham <colbec>
Tue Jun 18 17:49:38 2013, comment #1:

This works normally for me. I used the attached m-file (plot_pause.m) as an example.


This was with gnuplot 3.6.2 and octave 3.6.4.

(file #28344)

Rik <rik5>
Project Administrator
Tue May 14 19:58:08 2013, original submission:

Using Opensuse 12.3

Steps: (in an .m script)
1. define a set of points for plot to draw
2. call plot to plot the points
3. add a pause() command to halt the script early
4. first call to the .m script results in a plot window
correctly filled before pause is resolved
5. second and subsequent calls to the .m script
in the same Octave session
result in a figure window but no points are plotted
6. hit return to resolve the pause and the figure window
is filled correctly.

Expected: plot followed by pause draws the plot before the
pause is processed on all calls to the same script in the
same session.

Colin Beckingham <colbec>


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

Attach File(s):

Attached Files
file #28345:  plot_pause2.m added by colbec (167B - text/x-objcsrc)
file #28344:  plot_pause.m added by rik5 (96B - text/x-objcsrc)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by colbec (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu Sep 25 02:11:39 2014mtmillerOpen/ClosedOpen=>Closed
    Tue Jun 18 18:43:57 2013colbecAttached File-=>Added plot_pause2.m, #28345
    Tue Jun 18 17:49:38 2013rik5Attached File-=>Added plot_pause.m, #28344
      StatusNone=>Works For Me

    Back to the top

    Powered by Savane 3.1-cleanup1