bugGNU Octave - Bugs: bug #42881, Error Plotting Function in Octave

 
 

bug #42881: Error Plotting Function in Octave

Submitted by:  Brandon Morrison <bmorrison>
Submitted on:  Wed Jul 30 23:15:49 2014  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: Need InfoAssigned to: None
Originator Name: bmorrisonOpen/Closed: Closed
Release: 3.8.1Operating 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.

 

Mon Aug 11 17:58:58 2014, comment #4:

No response to request for info. Assume problem is solved and closing report.

Rik <rik5>
Project Administrator
Thu Jul 31 13:13:40 2014, comment #3:

Ok, I think I understand what you are seeing. If you type 'q' in the Octave command window does the plot respond as you expect?

If so, then here is what is happening:

Octave uses a screen pager by default to show the output of commands one screen at a time. In your script, if the x vector is too large, it will trigger the pager which is waiting for you to command it to scroll or to exit. This prevents the plot from responding because your command has not returned control to the Octave prompt yet.

If you want to disable the pager to let the data scroll to the command window no matter how large it is, type "more off" or "page_screen_output (false)" at the Octave prompt. This can be added to your octaverc startup file to make this a permanent preference.

Mike Miller <mtmiller>
Project Administrator
Thu Jul 31 04:58:07 2014, comment #2:

I was using Octave 3.8.1 in the built-in gui interface (entering octave--force-gui at the command prompt in linux). I was using the built-in editor, saved the file, and with a step value of 1, nothing but a grey graph window was shown. For other values, it worked beautifully.

We copied this exact code into MATLAB, which was installed on an Apple Macbook Pro, and the code performed beautifully for all values, including 1.

I am not 100% sure what plotting software I am using, as I installed the software directly from the Science Repository for OpenSUSE. I looked information about Octave on its openSUSE page and believe that it is making use of graphics_toolkit.

Brandon Morrison <bmorrison>
Thu Jul 31 03:49:33 2014, comment #1:

Thanks for your bug report. I don't see any problem with the attached script in Octave 3.8.1 here. Can you describe how you are running the script (at the Octave interpreter prompt, from the system shell, or within Emacs or QtOctave?) or what variations you have tried that have either worked or not worked? Which plotting engine are you using (graphics_toolkit)?

Mike Miller <mtmiller>
Project Administrator
Wed Jul 30 23:15:49 2014, original submission:

The code (see attached octave file) is supposed to be a simple array. The array is defined for x. The step value of 1 will NOT plot, it will freeze instead. For any other step value, the graph will plot.

We further tested the code on an Apple system using MATLAB. For all values of the step value, it graphs. Thus, there is a discrepancy between Octave 3.8.1 and MATLAB

Brandon Morrison <bmorrison>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #31802:  Graph2.m added by bmorrison (93B - text/x-matlab)

 

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 mtmiller (Posted a comment)
  • -unavailable- added by bmorrison (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Aug 11 17:58:58 2014rik5Open/ClosedOpen=>Closed
    Thu Jul 31 03:49:33 2014mtmillerStatusNone=>Need Info
    Wed Jul 30 23:15:49 2014bmorrisonAttached File-=>Added Graph2.m, #31802

    Back to the top


    Powered by Savane 3.1-cleanup