Dashed lines showing up Solid

6 visualizaciones (últimos 30 días)
Sophie Blankenheim
Sophie Blankenheim el 2 de Dic. de 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);

Respuestas (0)

Categorías

Más información sobre Spline Postprocessing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by