bugGNU Octave - Bugs: bug #58530, missing functions: xline() and...


bug #58530: missing functions: xline() and yline()

Submitted by:  Hartmut <hardy>
Submitted on:  Mon 08 Jun 2020 05:56:40 PM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

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


Sun 21 Nov 2021 09:40:41 PM UTC, comment #4: 

Not enough time to add these properly to Octave version 7.1.  I added the two names to the list of unimplemented functions here: http://hg.savannah.gnu.org/hgweb/octave/rev/90ca4cd8e7e5.

Rik <rik5>
Project Administrator
Thu 11 Nov 2021 11:18:41 PM UTC, comment #3: 

ping @rik to see if he has these lying around that someone could turn into at least partial compatibility hacks. if not we could at least make a quick missing_functions add.

Nicholas Jankowski <nrjank>
Project Member
Fri 30 Apr 2021 10:53:11 PM UTC, comment #2: 

Using version 6.1.0

>> plot(1:10)
>> yline(5.7);
error: 'yline' undefined near line 1, column 1

Mon 08 Jun 2020 09:12:49 PM UTC, comment #1: 

Interesting, I wrote m-files to do this when I first started using Octave more than 10 years ago, but I called my files hline.m (horizontal line) and vline.m (vertical line).  I can dust them off and add them to Octave.

Rik <rik5>
Project Administrator
Mon 08 Jun 2020 05:56:40 PM UTC, original submission:  

There are two new functions in Matlab: xline and yline.
Mathworks introduced them in R2018b.
These functions just draw one straight line into a plot, like this:


Currently (Octave 5.2.0) does not throw an "unknown function" comment, when using those commands.

I would suggest to

  • at least include those functions into the "missing functions" list of Octave
  • maybe generate two new Octave functions, that mimic this simple behavior
  • Perfect compatibility won't be reachable too soon, because those two command seem to return some kind of (classdef) object in Matlab.
Hartmut <hardy>


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

Attach Files:

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 nrjank (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by hardy (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-06-08 rik5 StatusNone => Confirmed
        Release5.2.0 => dev

    Back to the top

    Powered by Savane 3.7