octave plot legend code example
Example 1: octave plot legend
h ={"alpha 1", "alpha 2"};
legend (h, "location", "northeast");
set (legend, "fontsize", 12);
Example 2: octave plot legend
clf;
plot (rand (2));
title ("legend called with cellstr and string inputs for labels");
h = legend ({"foo"}, "bar");
legend (h, "location", "northeastoutside");
set (h, "fontsize", 20);