Answers for "how to add legend in octave"

1

octave plot legend

h ={"alpha 1", "alpha 2"};
 legend (h, "location", "northeast");
 set (legend, "fontsize", 12);
Posted by: Guest on May-26-2021
-1

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);
Posted by: Guest on March-25-2021

Browse Popular Code Answers by Language