h=patchofgca([gh])
gh : | gca or gcf; default gca |
h : | handle / handle array |
patchofgca
This function, patchofgca
, is designed to return the handle to all patch objects within a specified graphics axis in MATLAB. It is part of the SG-Library and was created by Tim Lueth in 2017.
gca
) or the current figure (gcf
). If no input is provided, the default is gca
.gh
to gca
by default.gh
to the provided input argument.findall
function to locate all objects of type 'patch' within the specified graphics handle gh
.h
.To use this function, simply call patchofgca
without any arguments to get the patch handles of the current axes:
patchofgca
This function is useful for identifying and manipulating patch objects within a MATLAB figure or axes, which are often used for creating filled polygons or other complex shapes in graphical plots.
Algorithm explaination created using ChatGPT on 2025-08-18 22:41. (Please note: No guarantee for the correctness of this explanation)