feat(matlab): count plots y-tick every 5 units + grid on
variation_plot: for the count metric set YTick to every 5 units (spanning the data); grid on for both metrics (rate keeps auto 0.2 ticks). Regenerated all learning-curve figures. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -44,6 +44,11 @@ title(vname, 'Interpreter', 'none');
|
|||||||
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.2 0.30 0.60 0.60], ...
|
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.2 0.30 0.60 0.60], ...
|
||||||
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
|
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
|
||||||
xticklabels('auto')
|
xticklabels('auto')
|
||||||
|
if strcmp(metric, 'count') % success count: y-ticks every 5 units
|
||||||
|
yl = ylim(gca);
|
||||||
|
set(gca, 'YTick', floor(yl(1) / 5) * 5 : 5 : ceil(yl(2) / 5) * 5);
|
||||||
|
end
|
||||||
|
grid on
|
||||||
drawnow;
|
drawnow;
|
||||||
exportgraphics(fig, outFile, 'Resolution', 150);
|
exportgraphics(fig, outFile, 'Resolution', 150);
|
||||||
close(fig);
|
close(fig);
|
||||||
|
|||||||
Reference in New Issue
Block a user