Size of Labels on a Plot
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
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
I think it is currently not possible to do so. Setting the fontsize
sets the font size for everything except the legend labels.
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)
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)
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2013-04-08 13:42:04 +0100
Seen: 1,510 times
Last updated: Apr 07 '15