bugGNU Octave - Bugs: bug #46140, legend function returns error,...

 
 

bug #46140: legend function returns error, "error: A(I): index out of bounds; value 119 out of bound 12

Submitter:  None
Submitted:  Wed 07 Oct 2015 12:46:37 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Works For Me Assigned to:  None
Originator Name:  toby wehrhan Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 08 Oct 2015 01:44:05 AM UTC, comment #2: 

Doug,

Thanks for your prompt reply.  Problem was that there was a string named "legend" in my workspace!  Cleared that and function legend() works fine.  So sorry for the confusion.

I've posted same in bug tracker.

Thanks again.

Toby


This can be closed.
Doug Stewart

Doug Stewart <dastew>
Wed 07 Oct 2015 05:57:47 AM UTC, comment #1: 

Hi,

This works for me both using gnuplot and opgengl based toolkits. It looks like you have a legend.m script somewhere in your path that shadows the original Octave version. What does the following command return in Octave?


which legend


This will tell you where the offending script is.

Pantxo Diribarne <pantxo>
Group Member
Wed 07 Oct 2015 12:46:37 AM UTC, original submission:  

Whenever I try to use the plot legend() function-- either from command line or with in a *.m script-- I get an "out of bound" error. 

For example the following code (copied from the command window) yields the error....


>> x = [1   2   3   4   5];
>> y = x.^2 + 5;
>> plot(x,y)
>> legend('y')
error: A(I): index out of bounds; value 121 out of bound 12





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 mtmiller (Updated the item)
  • -email is unavailable- added by dastew (Posted a comment)
  • -email is unavailable- added by pantxo (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
    2015-10-08 mtmiller Open/ClosedOpen Closed
    2015-10-07 pantxo StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code