Ask Your Question
2

Size of Labels on a Plot

asked 2013-04-08 13:42:04 +0200

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
2

answered 2013-04-08 14:17:33 +0200

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
3

answered 2015-04-07 21:27:01 +0200

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 16:48:45 +0200

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 13:42:04 +0200

Seen: 1,387 times

Last updated: Apr 07 '15