Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

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

1 view (last 30 days)
Tiago Dias
Tiago Dias on 20 Feb 2018
Closed: MATLAB Answer Bot on 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

Answers (0)

This question is closed.

Tags

Community Treasure Hunt

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

Start Hunting!