Search code examples
matlabmatlab-figure

comprehensive list of graphics object types matlab


I could not find a comprehensive graphics object types list that could be especially useful to find an modify objects in matlab plots such as:

findall(gcf,'Type','Line'); %get all line objects in the current figure

To be more precise: I'm looking for a list of possible input after the argument 'Type'.


Solution

  • I am not aware of a way to get the comprehensive list, but you can get the list of types for existing objects:

    types = unique(get(findall(gcf, '-property', 'Type'), 'Type'));
    

    Practically I think this is enough, since we are not interested in those non-existing objects.