Ask Your Question
1

Set LaTeX fontsize in labels?

asked 2015-03-20 21:54:59 +0100

Eugene gravatar image

The size of the text:

plot(sin, 0, pi, legend_label='$sin(x)$', fontsize=28)
plot(sin, 0, pi, legend_label='$sin(x)$').show(fontsize=28)

differs for the parts rendered using LaTeX (i.e. they are not affected by the fontsize size, $sin(x)$ is still a small text). How can I specify font for the LaTeX parts of the labels?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-03-22 23:07:15 +0100

eric_g gravatar image

Use the function set_legend_options as follows:

g = plot(sin, 0, pi, legend_label='$sin(x)$', fontsize=28)
g.set_legend_options(font_size=28)
show(g)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-03-20 21:54:59 +0100

Seen: 1,035 times

Last updated: Mar 22 '15