Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

The line appears on the legend but on the plot...

1 vue (au cours des 30 derniers jours)
Tiago Dias
Tiago Dias le 20 Fév 2018
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hello, I wanna plot with a line and with ".". the line appears blue in the box of the legend but in the plot only the points.
for j = 1:n_var % Fazer as variáveis todas
original = figure('name',titulo1{j});
set(original,'PaperUnits','centimeters','PaperPosition',[0 0 29 21],'PaperOrientation','landscape');
plot(t_ref(:,1),var_u1200lab(:,j),'-b.','MarkerSize',9);
set(gca,'FontSize',10);
grid on
title(['U-1200: ' var{j}],'FontSize',12,'Color','black','FontWeight','bold');
xlabel('tempo');
ylabel(titulo(j));
legend(var_original(j),'Location','best','orientation','vertical','linewidth',0.5);
ax = gca; % Eixos
ax.XAxis.LineWidth = 1.5;
ax.YAxis.LineWidth = 1.5;
ax.GridLineStyle = '-';
end

Réponses (0)

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by