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

 
 

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

Submitted by:  Muhali <muhali>
Submitted on:  Wed 22 May 2013 08:45:31 AM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: Patch SubmittedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project Member
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:

http://octave.1599824.n4.nabble.com/default-line-colors-td4653200.html

(file #28151)

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

In this example,

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 File(s):
   
   
Comment:
   

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

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by lachlan (Posted a comment)
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by adama (Updated the item)
  • -unavailable- added by muhali (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 03 May 2016 08:20:19 AM UTClachlanDependencies-=>bugs #47149 is dependent
    Thu 20 Jun 2013 03:39:12 AM UTCrik5StatusNone=>Patch Submitted
    Thu 23 May 2013 08:34:47 PM UTCadamaAttached File-=>Added line_bug39036.diff, #28151
    Wed 22 May 2013 08:45:32 AM UTCmuhaliAttached File-=>Added foo_O.png, #28136
      Attached File-=>Added foo_M.png, #28137

    Back to the top


    Powered by Savane 3.1-cleanup1