octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #58530] missing functions: xline() and yline()


From: Rik
Subject: [Octave-bug-tracker] [bug #58530] missing functions: xline() and yline()
Date: Thu, 7 Apr 2022 18:01:44 -0400 (EDT)

Follow-up Comment #12, bug #58530 (project octave):

@Tamandeep: Thank you for the patch.  I think you might want to start by
borrowing the code from one of the existing plot routines like area.m because
you will get a lot of the behavior that is generic to a plotting function for
free.  For example, if called as


h = xline (...)


the function should return a handle to the xline object.  Also, it should
always be possible to specify a different axes object besides gca to use with
the syntax


xline (hax, ...)


I checked and the current patch doesn't support this behavior.

As I mentioned in comment #9, the xline object needs to be dynamic.  Right now
the code is static.  Try


clf
xline (3)
ylim ([-1, 3])


The attached file shows that the line was not re-sized to the new axis
limits.

file://xline.png

(file #53054)

    _______________________________________________________

Additional Item Attachment:

File name: xline.png                      Size:7 KB
    <https://file.savannah.gnu.org/file/xline.png?file_id=53054>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58530>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]