% test file for plot showing properties of object plot
% genuine finger-typed files by Christina C. Christara

% generate some data
n = 2.^[3:8];
e1 = 1./n.^2;
e2 = 1./n.^3;
e3 = 1./n.^4;

sz = 16; % desired size of fonts, etc. can be changed to 14, 18, 20, etc

% plot, then change the properties
h = loglog(n, e1, 'r-+', n, e2, 'g-x', n, e3, 'b-*');
set(h, 'Markersize', sz-2, 'LineWidth', 2);
set(h(2), 'Markersize', sz, 'LineWidth', 3); % change only the second line width
axis([6 320 1e-10 1e-1]);
%axis tight; ax = axis; axis([ax(1)*0.8 ax(2)*1.2 ax(3)*0.8 ax(4)*1.2]);
hax = gca;
set(hax, 'FontSize', sz-2, 'TickLength', [0.02 0.05])
set(hax, 'XTick', n, 'YTick', 10.^([-10:2:-1]))
hlx = xlabel('n -- log scale'); set(hlx, 'FontSize', sz);
%px = get(hlx, 'Position'); set(hlx, 'Position', [px(1) 2*px(2) px(3)])
hly = ylabel('error -- log scale'); set(hly, 'FontSize', sz);
%ht = title('convergence study'); set(ht, 'FontSize', sz);
hl = legend('second order', 'third order', 'fourth order', ...
            'Location', 'SouthWest');
set(hl, 'FontSize', sz);

% To save in an eps file use
%print -depsc myplot.eps
% To save in a png file use
%print -dpng myplot.png
