function plot_how % create empty figure figure % adjust font size of axis axes('FontSize',16) % define vectors to plot x=1:.2:6; y=sin(x); z=cos(x); % create the plot plot(x,y,'ro--','LineWidth',1); hold on; plot(x,z,'b:','LineWidth',2); % Enforce axis limits xlim([0 7]); ylim([-2 3]); % Enforce ticks set(gca,'XTick',[ 0 2 4 6 ]) set(gca,'YTick',[ ]) % Create a grid grid; % Create legend legend('Simulation 1','Simulation 2'); % Label axis and plot xlabel('Time') ylabel('Pathways') title('Distribution') % Other ways of plotting figure; subplot(2,2,1); bar(x,y); subplot(2,2,2); semilogx(x,y,'+'); subplot(2,2,3); semilogy(x,y,'d'); subplot(2,2,4); loglog(x,y,'ks-');