From 5860960b89f463c2ad467292386ab6dfacd43c35 Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Feb 13 2019 16:14:49 +0000 Subject: trace_plot: Adjust labels. --- diff --git a/trace_plot.m b/trace_plot.m index c90eb08..2b6ea02 100644 --- a/trace_plot.m +++ b/trace_plot.m @@ -79,6 +79,8 @@ min_str = sprintf ("Min: %lu byte(s)", data_allocs_min); max_str = sprintf ("Max: %lu bytes", data_allocs_max); mean_str = sprintf ("Mean: %lu bytes", data_allocs_mean); legend (min_str, max_str, mean_str, "Sample", "location", plot1_legend_loc); +yt = get (gca, "ytick"); +set(gca, "yticklabel", sprintf ('%1.0e|', yt)); xlabel (sprintf ("Event # (%lu:1 down sampling)", down_sample_ratio)); ylabel ("Allocation Request Size (bytes)"); title ("Allocation Request Sizes"); @@ -171,6 +173,10 @@ figure (3, "Position", [0,0,1024,1024]); loglog (data_binned_allocs_sorted(:,1),data_binned_allocs_sorted(:,2), 'o', "linewidth", plot_line_width); h=get(gcf, "currentaxes"); set(h, "fontsize", font_size, "linewidth", tick_line_width); +yt = get (gca, "ytick"); +xt = get (gca, "xtick"); +set(gca, "yticklabel", sprintf ('%1.0e|', yt)); +set(gca, "xticklabel", sprintf ('%1.0e|', xt)); title ("Allocation Size Distribution"); xlabel ("Allocation Size (bytes)"); ylabel ("Number of allocations");