Dashed lines showing up Solid

21 Ansichten (letzte 30 Tage)
Sophie Blankenheim
Sophie Blankenheim am 2 Dez. 2020
I'm trying to plot a set of data with fit lines that are solid for filled in data points and dashed for hollow data points, but when I run it all of the lines show up solid unless I switch it to solid lines for hollow data points, and dashed lines for filled in data points. I also tried including 'linestyle' to no avail as well as switching the colors.
subplot(1,2,2)
hold on
scatter(TDCases1(:,1),TDCases1(:,2),'k','o')%
scatter(DSCases1(:,1),DSCases1(:,2),'m','o','filled')
plot(TDCases1(:,1), f_TD,'--k')
[sortedDS, sortIds] = sort(DSCases1(:,1));
plot(sortedDS, f_DS(sortIds),'-m')
%ylim([0 aboveMax])
xlabel('Age (months)','Fontsize',14)
% ylabel(ygraphlabel,'Fontsize',14)
ylabel('Size','Fontsize',14)
hold off
title(['\fontsize{18}','S TD V DS fit - ', measureToAnalyze])
set(gca,'FontSize',14);
legend('TD','DS','Location','northwest')
set(gca,'FontSize',14);

Antworten (0)

Kategorien

Mehr zu Animation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by