http://www.mathworks.com/matlabcentral/newsreader/view_thread/278359
MATLAB Central Newsreader  help with legend
Feed for thread: help with legend
enus
©19942015 by MathWorks, Inc.
webmaster@mathworks.com
MATLAB Central Newsreader
http://blogs.law.harvard.edu/tech/rss
60
MathWorks
http://www.mathworks.com/images/membrane_icon.gif

Fri, 02 Apr 2010 22:01:20 +0000
help with legend
http://www.mathworks.com/matlabcentral/newsreader/view_thread/278359#732588
Stricky Stricky
hi there, I need to do more functions in one plot<br>
<br>
f=plot(xn,a+b*xn+c*xn.^2+d*xn.^3,'Color',[k l m]); and for the points in same color as the line<br>
plot(x,y,'x','Color',[k l m],'MarkerSize',10,'LineWidth',2)<br>
<br>
now I want to do legend but only for functions, not for points, couse, when I type <br>
legend('f','f2','f3');<br>
the first row is function line in correct color with correct name  ist ok, than the programm take another cyclic round<br>
and in the legend come up 2 new rows (there are 3 of them now), so first is ok, but second  has instead of line mark X  as a point  named f2, and the third is again the line type of new function with correct name... why the hell is in the legend the pointplot comming up? How should I delete it from legend? thx....

Sat, 03 Apr 2010 01:05:26 +0000
Re: help with legend
http://www.mathworks.com/matlabcentral/newsreader/view_thread/278359#732607
Sadik
How about this one: You plot the functions first, put the legend and then plot the dotted ones. If this even doesn't work, you can use "hold on" and make each function plot separately, put your legend and then plot the dotted ones.<br>
<br>
Best.