bugGNU Octave - Bugs: bug #39036, line(X, Y) draws no lines


bug #39036: line(X, Y) draws no lines

Submitter:  Muhali <muhali>
Submitted:  Wed 22 May 2013 08:45:31 AM UTC
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Wed 12 Dec 2018 11:04:15 PM UTC, comment #3: 

This was a pain in the ass, but I rewrote the underlyinng code for generating lines in _line_.m in this changeset (https://hg.savannah.gnu.org/hgweb/octave/rev/69bd0cfbd123).

This will be a part of Octave 5.0 in early January, 2019.

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Mon 04 Jul 2016 09:41:18 AM UTC, comment #2: 

Thanks for this patch, Adam.

Are you still interested in contributing to Octave?  We're applying unprocessed patches in preparation to release 4.2.0.

I'm concerned that this patch will slow down plotting since plot already does things right, and everything will be re-checked in _line_.  Would you be able to modify the patch to move the testing and colour cycling to  line  instead of _line_?

If you are no longer active, then please let me know promptly so that I can have a go.

Lachlan Andrew <lachlan>
Thu 23 May 2013 08:34:47 PM UTC, comment #1: 

Yes, line's current behaviour is different from Matlab here.

I've attached a patch which brings it into line with Matlab.  It also enables color cycling, which was mentioned on the mailing list below:


(file #28151)

Adam H Aitkenhead <adama>
Wed 22 May 2013 08:45:31 AM UTC, original submission:  

In this example,

line([0 1], [ones(3,1) (1:3)'])
print foo.png

octave and ML give different results (attached). Moreover, when plotting [ones(3,1) (1:3)']' instead (the transposed matrix), unlike ML octave complains that

error: line: number of X, Y, and Z points must be equal

which may or may not be seen as a bug.

Muhali <muhali>


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

Attach Files:

Attached Files
file #28151:  line_bug39036.diff added by adama (12KiB - text/x-patch)
file #28136:  foo_O.png added by muhali (9KiB - image/png)
file #28137:  foo_M.png added by muhali (11KiB - image/png)


Depends on the following items: None found

   bug dependencies.


Carbon-Copy List
  • -email is unavailable- added by lachlan (Posted a comment)
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by adama (Updated the item)
  • -email is unavailable- added by muhali (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 project members can vote.


    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-12-12 rik5 StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2016-05-03 lachlan Dependencies- bugs #47149 is dependent
    2013-06-20 rik5 StatusNone Patch Submitted
    2013-05-23 adama Attached File- Added line_bug39036.diff, #28151
    2013-05-22 muhali Attached File- Added foo_O.png, #28136
        Attached File- Added foo_M.png, #28137

    Back to the top

    Powered by Savane 3.12