Improve the design of figures
Show older comments
Hi There,
I have this code which genertaes multiple curves. But I need to improve the whole figure to looks like this figure in attachment.
Any suggestions?
Thanks in advance!

TextFontSize=20;
LegendFontSize = 18;
set(0,'DefaultAxesFontName','Times',...
'DefaultLineLineWidth',1,...
'DefaultLineMarkerSize',8);
set(gca,'FontName','Times New Roman','FontSize',TextFontSize);
x=[0.1,1,1.2,1.4,3,4]; % Bandwidth
plot(x,[17,50,50,50,50,50], 'b:x',...%N
'LineWidth',1,...
'MarkerSize',7,...
'MarkerEdgeColor','b',...
'MarkerFaceColor',[0.5,0.5,0.5], 'DisplayName', 'N');
hold on;
plot(x,[9,13,17,19,23,30], '--k*',...% L
'LineWidth',1,...
'MarkerSize',7,...
'MarkerEdgeColor','k',...
'MarkerFaceColor',[0.5,0.5,0.5], 'DisplayName', 'L');
plot(x,[4,7,9,11,18,21], '-.hr',...% F
'LineWidth',1,...
'MarkerSize',7,...
'MarkerEdgeColor','r',...
'MarkerFaceColor',[0.5,0.5,0.5], 'DisplayName', 'F');
set(gca,'XMinorTick','on','YMinorTick','on');
grid on;
xlabel('B')
ylabel('Number of users')
legend show
figure;
hold off;
9 Comments
Rik
on 26 Aug 2022
How exactly would you like these plots to be improved?
Brave A
on 26 Aug 2022
Brave A
on 26 Aug 2022
Walter Roberson
on 27 Aug 2022
gscatter() maybe? scatter() anyhow. scatter() can handle multiple colors at one time, but only one symbol at a time. Symbol 'o' for circles, symbol '^' for upward-pointing triangles.
Brave A
on 27 Aug 2022
Rik
on 27 Aug 2022
Have you read the documentation for the scatter function? Which part was not clear to you?
Brave A
on 27 Aug 2022
Brave A
on 28 Aug 2022
Accepted Answer
More Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


