how can i insert markers and merge four graphs in one?

1 回表示 (過去 30 日間)
Harshit
Harshit 2014 年 7 月 15 日
コメント済み: Ali 2017 年 10 月 29 日
i have taken four graphs each on dual y axis against x axis. One y axis contains the values of psnr and other y axis contains values of ssim. x axis contains windows. hence 4 graphs obtained for (sigma 10,20,50,100). to show each curve differently markers are also required ,hence also help me with this. Please suggest suitable commands or functions.
  1 件のコメント
Ali
Ali 2017 年 10 月 29 日
if true
--------------------------------------------------- code start
This is an example for your case
Input is "Input_Data", two dimension matrix
Marker_Counter=1;
figure6=figure;
Markers = {'+','o','*','x','v','d','^','s','>','<'};
for i=1:10:size(Input_Data,1)
TPR=Input_Data(i:i+9,7);
FPR=Input_Data(i:i+9,8);
plot(FPR,TPR,strcat('-',Markers{Marker_Counter}));
Marker_Counter=Marker_Counter+1;
hold on
end
plot([0.5 1],[0.5 1],'--');
legend('Minpts = 100','Minpts = 200','Minpts = 300','Minpts = 400','Minpts = 500','Minpts = 600','Minpts = 700','Minpts = 800','Minpts = 900','Minpts = 1000','','Location','SouthEast');
xlabel('FPR or (1-Specificity)','FontSize',12,'FontWeight','bold'); ylabel('TPR or Spensitivity)','FontSize',12,'FontWeight','bold');
title('ROC Space');
close(gcf);
-------------------------------------------- code end
end
--------------------------------------- picture link preview

サインインしてコメントする。

回答 (2 件)

Rob L
Rob L 2014 年 7 月 15 日
Try help documentation on
subplot, hold on, annotation

Yoav Livneh
Yoav Livneh 2014 年 7 月 15 日
In order to change the markers you can change the 'marker' attribute on the line series. For example:
[AX, H1, H2] = plotyy(x1,y1,x2,y2);
set(H1,'marker','x');
set(H2,'marker','o');
You can also change 'markersize' and other attributes listed in the lineseries proerties.
  1 件のコメント
Harshit
Harshit 2014 年 7 月 15 日
thnx yoav.....can u please give me some commands for merging 4 graphs in one single plot.

サインインしてコメントする。

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by