Ask Your Question
2

Size of Labels on a Plot

asked 11 years ago

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

Preview: (hide)

3 Answers

Sort by » oldest newest most voted
2

answered 11 years ago

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.

Preview: (hide)
link
3

answered 9 years ago

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)
Preview: (hide)
link
1

answered 9 years ago

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)
Preview: (hide)
link

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: 11 years ago

Seen: 1,573 times

Last updated: Apr 07 '15