add b-value label for overlapping plots

This commit is contained in:
Konstantinos Leptokaropoulos 2020-06-04 14:35:59 +02:00
parent b4e572d7f2
commit 8d624be927
2 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,7 @@ subplot(3,1,3) % plot Activity rate
plot(tplo,lambda,'o','LineWidth',2,'MarkerSize',12);ylabel(['Events/',HP(1).unit],'FontSize',14) plot(tplo,lambda,'o','LineWidth',2,'MarkerSize',12);ylabel(['Events/',HP(1).unit],'FontSize',14)
if strcmp(HP(1).method,'GRU') || strcmp(HP(1).method,'GRT'); if strcmp(HP(1).method,'GRU') || strcmp(HP(1).method,'GRT');
yyaxis right;plot(tplo,bval,'o','LineWidth',2,'MarkerSize',12); ylabel('b-value','FontSize',14); yyaxis right;plot(tplo,bval,'o','LineWidth',2,'MarkerSize',12); ylabel('b-value','FontSize',14);
ylabel('b-value','FontSize',14);
else; yyaxis right;plot(tplo,meanM,'o','LineWidth',2,'MarkerSize',12) else; yyaxis right;plot(tplo,meanM,'o','LineWidth',2,'MarkerSize',12)
ylabel('mean Magnitude','FontSize',14); ylabel('mean Magnitude','FontSize',14);
end end

View File

@ -61,6 +61,7 @@ subplot(3,1,3) % plot Activity rate
plot(tplo,lambda,'o','LineWidth',2,'MarkerSize',12);ylabel(['Events/',HP(1).unit],'FontSize',14) plot(tplo,lambda,'o','LineWidth',2,'MarkerSize',12);ylabel(['Events/',HP(1).unit],'FontSize',14)
if strcmp(HP(1).method,'GRU') || strcmp(HP(1).method,'GRT'); if strcmp(HP(1).method,'GRU') || strcmp(HP(1).method,'GRT');
yyaxis right;plot(tplo,bval,'o','LineWidth',2,'MarkerSize',12);ylabel('b-value','FontSize',14); yyaxis right;plot(tplo,bval,'o','LineWidth',2,'MarkerSize',12);ylabel('b-value','FontSize',14);
ylabel('b-value','FontSize',14);
else; yyaxis right;plot(tplo,meanM,'o','LineWidth',2,'MarkerSize',12) else; yyaxis right;plot(tplo,meanM,'o','LineWidth',2,'MarkerSize',12)
ylabel('mean Magnitude','FontSize',14);end ylabel('mean Magnitude','FontSize',14);end
datetick('x',20);title('Activity Rate','FontSize',16); datetick('x',20);title('Activity Rate','FontSize',16);