bugGNU Octave - Bugs: bug #34153, error with line

 
 

bug #34153: error with line

Submitted by:  None
Submitted on:  Sat 27 Aug 2011 12:53:31 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: Works For MeAssigned to: Ben Abbott <bpabbott>
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 3.4.0
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 02 Sep 2011 02:10:58 AM UTC, comment #4:

I ran several tests and did not encounter a problem.

I tried ...

Next, I placed the line command in a m-file script and called the script in the same manner (100 times)

Finally, I placed the line command in a m-file function and called the function in the same manner (100 times)

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Sat 27 Aug 2011 06:27:56 PM UTC, comment #3:

NO. Hold on , there is a problem here. When this line is in a .m file that is called in a loop it comes back.

I'll try to pin down what is happening and provide more info.

Anonymous
Sat 27 Aug 2011 06:24:49 PM UTC, comment #2:

I do beg your pardon.

I quit octave and retried. Now works as documented.

I would guess that I had mistyped something and inadvertently redefined line as a variable.

Sorry for not checking.

Please close as invalid.

Anonymous
Sat 27 Aug 2011 02:03:58 PM UTC, comment #1:

I don't see an error with

in 3.4.2 or the current development sources. I also can't reproduce the problem with 3.4.0 or any other version I tried (3.2.4, 3.3.54, 3.3.55, 3.4.1). Are you really using 3.4.0?

John W. Eaton <jwe>
Project Administrator
Sat 27 Aug 2011 12:53:31 PM UTC, original submission:

line([-18,18],[0,0])
error: horizontal dimensions mismatch (1x1 vs 2x1) near line 523, column 38
error: called from:........

-- Function File: line (X, Y, Z, PROPERTY, VALUE, ...)
Create line object from X and Y and insert in current axes object.
Return a handle (or vector of handles) to the line objects created.

Multiple property-value pairs may be specified for the line, but
they must appear in pairs.

So what is X and Y here. Letters are little help without an explanation.

As a general point the poor doc is a constant barrier to effective use of octave.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  •  

    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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 12 Sep 2011 02:00:28 AM UTCbpabbottOpen/ClosedOpen=>Closed
    Fri 02 Sep 2011 02:10:58 AM UTCbpabbottStatusNeed Info=>Works For Me
      Assigned toNone=>bpabbott
    Sat 27 Aug 2011 02:03:58 PM UTCjweCategoryNone=>Plotting
      StatusNone=>Need Info
      Summarydoc ??=>error with line

    Back to the top


    Powered by Savane 3.1-cleanup1