Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

1 Ansicht (letzte 30 Tage)
Tiago Dias
Tiago Dias am 20 Feb. 2018
Geschlossen: MATLAB Answer Bot am 20 Aug. 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

Antworten (0)

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by