Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
plot in matlab
figure1 = figure('Color',[1 1 1]);
axes1 = axes('Parent',figure1,'YTick',[0:1:10],...
'GridLineStyle','--','FontSize', 15);
X = 10:10:40
plot(X, multitest(:, 1),'s-','Color',[1 0 1] ,'LineWidth',2.5, 'DisplayName','adult-7');
hold on;
plot(X, multitest(:, 2),'^-', 'Color',[1 0 0], 'LineWidth',2.5, 'DisplayName','adult-5');
xlabel('Size of dataset(K)', 'FontSize', 16);
hold on;
hold on;
ylabel('average relative error(%)', 'FontSize', 16);
axis([10 40 0 10]);
% Create legend
legend1 = legend(axes1,'show');
%legend('LIGDP Heuristic','Degree based GDTSP', 'Weight based GDTSP ','Location', 'NorthWest', 'FontSize', 14);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.