Tuesday, February 17, 2015

Matlab new page size scraps plot axis markers

-Run a script to generate only one plot
-Change page size in print preview / export setup
-Run the uniformticks script (x-axis shown here):

%% render uniform ticks digits on X axis
% input: number of decimals after decimal point
function uniformticks_x(deci) ;


command = ['%0.' mat2str(deci) 'f|'] ;
ticks = get(gca, 'Xtick') ;
set(gca, 'XTickLabel', sprintf(command, ticks));

No comments:

Post a Comment