Ask Your Question

Set LaTeX fontsize in labels?

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

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

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

eric_g gravatar image

Use the function set_legend_options as follows:

g = plot(sin, 0, pi, legend_label='$sin(x)$', fontsize=28)
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


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

Seen: 995 times

Last updated: Mar 22 '15