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

Submitter:  Colin Beckingham <colbec>
Submitted:  Tue 14 May 2013 07:58:08 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Works For Me Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.6.4 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 25 Sep 2014 02:11:39 AM UTC, 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>
Group Member
Wed 19 Jun 2013 09:43:28 AM UTC, comment #4: 

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

Colin Beckingham <colbec>
Tue 18 Jun 2013 11:50:36 PM UTC, 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>
Group administrator
Tue 18 Jun 2013 06:43:57 PM UTC, 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.

Steps:
start Octave
plot_pause
<Return>
<Return>
<Return>
plot_pause
<Return>
<Return>
<Return>

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 18 Jun 2013 05:49:38 PM UTC, comment #1: 

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

Steps:


graphics_toolkit gnuplot
plot_pause
<Return>
plot_pause
<Return>
plot_pause
<Return>


This was with gnuplot 3.6.2 and octave 3.6.4.


(file #28344)

Rik <rik5>
Group administrator
Tue 14 May 2013 07:58:08 PM UTC, 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 Files:
   
   
Comment:
   

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

    Date Changed by Updated Field Previous Value => Replaced by
    2014-09-25 mtmiller Open/ClosedOpen Closed
    2013-06-18 colbec Attached File- Added plot_pause2.m, #28345
    2013-06-18 rik5 Attached File- Added plot_pause.m, #28344
        StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code