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

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

[Octave-bug-tracker] [bug #55840] line plot creates additional undesirab


From: anonymous
Subject: [Octave-bug-tracker] [bug #55840] line plot creates additional undesirable axes when specifying axes handle to plot into
Date: Tue, 5 Mar 2019 16:11:01 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?55840>

                 Summary: line plot creates additional undesirable axes when
specifying axes handle to plot into
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 05 Mar 2019 09:11:00 PM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Glenn Groeschel
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.1.0
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

First, thanks to all the Octave contributors that make Octave so great.

When using line(...) to plot into an existing axes handle, an undesirable axes
is created in the current figure when no axis exists.  Run attached
unwanted_axis.m for demonstration.

This occurs for Open_GL graphics toolkit as well as ftlk toolkit.

----------------------------------------------------------------------
GNU Octave Version: 5.1.0 (hg id: d05d6eebde10)
GNU Octave License: GNU General Public License
Operating System: MINGW32_NT-6.1 Windows 7 Service Pack 1 x86_64
----------------------------------------------------------------------

This error occurs when __next_line_color__.m and __next_line_style__.m
eventually get called.  In these m-files gca() is called, which creates an
axis when one doesn't exist in the current figure (even though the explicit
handle to the desired axis is passed to line). To remedy, __line__.m can be
modified to pass the desired axes handle to __next_line_style__.m and
__next_line_color__.m.  Both of these functions need to be modified to allow
passing in the desired axis handle as well.

Diffs for a very crude hack to address this are attached.





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 05 Mar 2019 09:11:00 PM UTC  Name: unwanted_axis.m  Size: 676B   By:
None

<http://savannah.gnu.org/bugs/download.php?file_id=46434>
-------------------------------------------------------
Date: Tue 05 Mar 2019 09:11:00 PM UTC  Name: __next_line_color__.diff  Size:
1KiB   By: None

<http://savannah.gnu.org/bugs/download.php?file_id=46435>
-------------------------------------------------------
Date: Tue 05 Mar 2019 09:11:00 PM UTC  Name: __line__.diff  Size: 2KiB   By:
None

<http://savannah.gnu.org/bugs/download.php?file_id=46436>
-------------------------------------------------------
Date: Tue 05 Mar 2019 09:11:00 PM UTC  Name: __next_line_style__.diff  Size:
987B   By: None

<http://savannah.gnu.org/bugs/download.php?file_id=46437>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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