aboutsummaryrefslogtreecommitdiff
path: root/tests/stress_tests/extractloop_plot_csv.m
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-01-03 18:16:02 +0100
committerJakob Unterwurzacher2019-01-03 18:24:14 +0100
commit1c9fb707fea50d31dd940382b6a3af1a7e4901a3 (patch)
tree9efe70a00f506d0b48cb966d90d477a77867b984 /tests/stress_tests/extractloop_plot_csv.m
parenta1ba4b6576695a3e680364813425ffd9c9c7c148 (diff)
tests: overengineer extractloop_plot_csv.m a little
Plot iteration time on second y axis, adjust line styles
Diffstat (limited to 'tests/stress_tests/extractloop_plot_csv.m')
-rwxr-xr-xtests/stress_tests/extractloop_plot_csv.m10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/stress_tests/extractloop_plot_csv.m b/tests/stress_tests/extractloop_plot_csv.m
index d6c164e..be80656 100755
--- a/tests/stress_tests/extractloop_plot_csv.m
+++ b/tests/stress_tests/extractloop_plot_csv.m
@@ -2,9 +2,13 @@
r=csvread('/tmp/extractloop.csv');
figure('Position',[100,100,1600,800]);
-plot(r(:,2), r(:,3)/1024, '-o');
-xlabel('seconds')
-ylabel('RSS MiB')
+[hAx,hLine1,hLine2] = plotyy(r(:,2), r(:,3)/1024, r(:,2), r(:,4));
+xlabel('Runtime (seconds)')
+set(hLine1, 'LineWidth', 1, 'Marker', 'o', 'MarkerSize', 10)
+% LineWidth also sets the marker drawing thickness
+set(hLine2, 'LineWidth', 1, 'LineStyle', 'none', 'Marker', '*', 'MarkerSize', 10)
+ylabel(hAx(1), 'RSS (MiB)')
+ylabel(hAx(2), 'Iteration Time (seconds)')
grid on;
drawnow;
disp('press enter to exit');