Ask Your Question
0

Size of Labels on a Plot

asked 2013-04-08 06:42:04 -0500

Dox gravatar image

dear all:

I'd like to know if there is any way to change the size of the font of labels (in a plot) without changing the size of the numbers on the ticks.

Thank you

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2013-04-08 07:17:33 -0500

ppurka gravatar image

I think it is currently not possible to do so. Setting the fontsize sets the font size for everything except the legend labels.

edit flag offensive delete link more
2

answered 2015-04-07 14:27:01 -0500

eric_g gravatar image

Actually, you can use the method set_legend_options() to change the size of labels:

p = plot(x, legend_label='aha')
p.set_legend_options(font_size=24)
edit flag offensive delete link more
1

answered 2015-04-07 09:48:45 -0500

stan gravatar image

I just found this when trying to solve a similar problem. I also found a solution at http://www.sagemath.org/doc/reference... The save command takes the argument legend_font_size, e.g.:

p = plot(x, legend_label='aha')
p.save('a.png', legend_font_size=24)
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

Stats

Asked: 2013-04-08 06:42:04 -0500

Seen: 291 times

Last updated: Apr 07 '15