[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51251] gca should accept figure handle argume
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #51251] gca should accept figure handle argument |
Date: |
Fri, 16 Jun 2017 14:29:00 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0 |
URL:
<http://savannah.gnu.org/bugs/?51251>
Summary: gca should accept figure handle argument
Project: GNU Octave
Submitted by: None
Submitted on: Fri 16 Jun 2017 06:28:58 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Marshall Floyd
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.1
Operating System: Any
_______________________________________________________
Details:
It would be nice if gca would take an optional argument of the figure handle
to get the current axis for. I've used this in Matlab and find it rather
useful when there are many figures.
Here's my fix that would make it work the way I want/expect:
function h = gca (f = gcf)
if (nargin <= 1)
h = get (f, "currentaxes");
if (isempty (h))
h = axes ("parent",f);
endif
else
print_usage ();
endif
endfunction
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51251>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51251] gca should accept figure handle argument,
anonymous <=