Skip to content

Instantly share code, notes, and snippets.

@adamjgnoel
Created June 23, 2016 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamjgnoel/de4106ee39a3a2163614df7109b598f2 to your computer and use it in GitHub Desktop.
Save adamjgnoel/de4106ee39a3a2163614df7109b598f2 to your computer and use it in GitHub Desktop.
% This script removes the selected lines from a figure's legend. The lines
% must be selected BEFORE calling this script
%
% Created June 6, 2014, by Adam Noel
%
function removeLegendLines()
a = findobj('Selected', 'on');
for i = 1:length(a)
hasbehavior(a(i), 'legend', false);
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment