Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

1 visualización (últimos 30 días)
Tiago Dias
Tiago Dias el 20 de Feb. de 2018
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by