Skip to content

Commit

Permalink
Bring plot showcase utility script from old uni repo from 2012.
Browse files Browse the repository at this point in the history
  • Loading branch information
iglesias authored Dec 15, 2023
1 parent 4759ab3 commit baa0227
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions etc/plot_showcase.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
linestyles = cellstr(char('-',':','-.','--','-',':','-.','--','-',':','-',':',...
'-.','--','-',':','-.','--','-',':','-.'));

n = 10;

MarkerEdgeColors = jet(n);
Markers = ['o','x','+','*','s','d','v','^','<','>','p','h','.',...
'+','*','o','x','^','<','h','.','>','p','s','d','v',...
'o','x','+','*','s','d','v','^','<','>','p','h','.'];

x = 0:0.01:2;

X = repmat(x, n, 1);
Y = exp(-0.5*X.*repmat((1:10)', 1, length(x)));

figure
hold on
for i=1:n
plot(X(i,:), Y(i,:),[linestyles{i} Markers(i)],'Color',MarkerEdgeColors(i,:));
end
hold off

figure
hold on
for i=1:n
plot(X(i,:), Y(i,:),[linestyles{i}], 'Color',MarkerEdgeColors(i,:));
end
hold off

0 comments on commit baa0227

Please sign in to comment.