hi there, I need to do more functions in one plot
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
plot(x,y,'x','Color',[k l m],'MarkerSize',10,'LineWidth',2)
now I want to do legend but only for functions, not for points, couse, when I type
legend('f','f2','f3');
the first row is function line in correct color with correct name - ist ok, than the programm take another cyclic round
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 point-plot comming up? How should I delete it from legend? thx....
|
|
0
|
|
|
|
Reply
|
Stricky
|
4/2/2010 10:01:20 PM |
|
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.
Best.
|
|
0
|
|
|
|
Reply
|
Sadik
|
4/3/2010 1:05:26 AM
|
|
|
1 Replies
178 Views
(page loaded in 0.019 seconds)
Similiar Articles: Problem with Multiple Axes (Plots) on one Figure - comp.soft-sys ...How to link axes and legend? - comp.soft-sys.matlab Problems with Legend Box - comp.soft ... Geeks Matlab tutorial on plots, axis, marker, legend and figure configuration ... Using variables to create a legend - comp.soft-sys.matlab ...How to ignore an entry in Legend - comp.soft-sys.matlab Using variables to create a legend - comp.soft-sys.matlab ... How to ignore an entry in Legend - comp.soft-sys ... Automate legend creation for plots - comp.soft-sys.matlab ...I want to place all z legends on the graph. Everyone must want to do this.. What is the correct format? legend(string array); Appreciate any help, thanks. Change length of legend line sample? - comp.soft-sys.matlab ...Is there any way in MATLAB to reduce the length of the line sample, as it is with i.e. Gnuplot (set key samplen 'sample length')? When I search in the product help I ... plot legend in for loop - comp.soft-sys.matlabCan anyone help? Thanks in advance, sdv for k = 1:1:length(A) figure(1) plot(X(k), Y(k)); legend(num2str(A(k)), 'Location', 'Best'); hold all ... How to draw points along a line at every 5 or 10 data point ...In that case, I'm afraid my legend would be slightly incorrect, since it can have ... > > plot "datafile" w l t 'my data', "" every 5 w p t '' > > should help you with the ... legends to multiple plots in 1 figure - comp.soft-sys.matlab ...Hi :) Is there an easy way to create this type of legends (during the plotting)? Thanks:) ... Add a Title to a Legend? - comp.soft-sys.matlabI had the idea of entering a Title to each legend but am not sure if the LEGEND command has this property. Any help or suggestion is greatly appreciated! Combine multiple figures (.fig) with subplots into one figure ...... subplot's P = copyobj(lu_ax,F); set(P,'position',P1_pos) Any help ... using the code below I had trouble with plotting the legend so I used 'sub-plot-legend ... Simulation of Cooperative spectrum sensing - comp.soft-sys.matlab ...Helllo to all, t seems that i might need a little help with the matlab code in a ... of False alarm (Pfa)'); ylabel('Probability of Missed Detection (Pmd)'); legend ... The Legend of Zelda: Twilight Princess Wiki GuideThe Legend of Zelda: Twilight Princess wiki guide at IGN: walkthroughs, items, maps, video tips, strategies to beat your friends and more. Help other players by ... The Legend of Zelda FAQs, Walkthroughs, and Guides for NES - GameFAQsYou can write and submit your own FAQ or guide for this game too! Read the Help Files to find out how. 7/27/2012 12:20:40 AM
|