Skip to content

Instantly share code, notes, and snippets.

@ka9e
Last active August 29, 2015 14:13
Show Gist options
  • Save ka9e/3749ff67575610dcdeab to your computer and use it in GitHub Desktop.
Save ka9e/3749ff67575610dcdeab to your computer and use it in GitHub Desktop.
output to pdf
ns = [128,256,512,1024,2048,4096,8192,16384,32768,65536,131072,262144,524288,1048576,];
A = [2.50758e+007,1.59102e+008,2.52819e+008,3.58365e+008,4.55699e+008,5.09125e+008,5.50919e+008,5.68417e+008,5.21719e+008,5.85463e+008,5.71442e+008,5.65458e+008,5.44664e+008,4.43185e+008,];
B = [7.44185e+007,7.62636e+007,7.62636e+007,5.67871e+007,7.64215e+007,7.65404e+007,7.62636e+007,7.64809e+007,6.93705e+007,7.63154e+007,7.61604e+007,7.53965e+007,7.46425e+007,5.81409e+007,];
figure(1)
h1 = loglog(ns, A, 'ro', ns, B, 'bx');
set(h1, 'MarkerSize', 10);
set(gca, 'xtick', [128,1024,8192,65536,1048576], 'XLim', [128, 1048576]);
legend('para', 'para', 'location', 'northeast');
% for octave
print -f1 -dpdf -color file.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment