Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
% 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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment