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

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

[Octave-bug-tracker] [bug #39529] graphics functions: unneeded new axis


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #39529] graphics functions: unneeded new axis when parent is specified as prop/val
Date: Fri, 19 Jul 2013 17:24:46 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0

URL:
  <http://savannah.gnu.org/bugs/?39529>

                 Summary: graphics functions: unneeded new axis when parent is
specified as prop/val
                 Project: GNU Octave
            Submitted by: pantxo
            Submitted on: ven. 19 juil. 2013 17:24:45 GMT
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Following bug http://savannah.gnu.org/bugs/?39483

When there is no current axes, e.g. when the current figure is empty, many
graphics functions create a new axes even when the target parent axes was
specified through prop/val pair.

The following code demonstrates the problem:

figure (1);
ax = axes ();
figure (2)
text (.5, .5, "toto", "parent", ax)
get (2, "currentaxes")


Populating "ax" in figure 1 should not create any axes in figure 2. The
problem lies in the generalized use of "gca ()" which creates a new axes when
none is found in the current figure.

Attached is a patch that solves that problem for text.m, plot.m, surface.m and
image.m (patch.m doesn't suffer this problem). I can list the high level
functions such as plot.m that suffer this issue if needed.

 











    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: ven. 19 juil. 2013 17:24:45 GMT  Name: graphics_avoid_gca.diff  Size: 3
ko   By: pantxo

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

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39529>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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