<< slr_fill_fields slr slr_strip_blanks >>

slr >> slr > slr_prettify

slr_prettify

Attempts to make a handle (e.g. a figure) pretty for articles.

Syntax

slr_prettify(h)
slr_prettify(h, opt)

Parameters

h (handle)

the thing to prettify

opt (struct)

the options

Description

Given a handle, this routines attempts:

Default values (of thickness, font sizes, etc.) can be modified by giving a structure containing the options to modify. The available options are:

Examples

n = 1000;
x = linspace(0,2*%pi,n);
plot(x,sin(x),x,cos(x))
h = gcf()
title('$\text{Figure of }f_1(x)\text{ and }f_2(x)$')
xlabel('$x\text{ (rad)}$')
ylabel('$y$')
legend('$f_1(x) = sin(x)$','$f_2(x) = cos(x)$')
opt.line_thickness = 3
opt.labels_font_size = 4
slr_prettify(h, opt)


Report an issue
<< slr_fill_fields slr slr_strip_blanks >>