ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 07 Apr 2015 21:27:01 +0200Size of Labels on a Plothttps://ask.sagemath.org/question/7518/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 youMon, 08 Apr 2013 13:42:04 +0200https://ask.sagemath.org/question/7518/size-of-labels-on-a-plot/Answer by eric_g for <p>dear all:</p>
<p>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.</p>
<p>Thank you</p>
https://ask.sagemath.org/question/7518/size-of-labels-on-a-plot/?answer=26463#post-id-26463Actually, 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)Tue, 07 Apr 2015 21:27:01 +0200https://ask.sagemath.org/question/7518/size-of-labels-on-a-plot/?answer=26463#post-id-26463Answer by stan for <p>dear all:</p>
<p>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.</p>
<p>Thank you</p>
https://ask.sagemath.org/question/7518/size-of-labels-on-a-plot/?answer=26457#post-id-26457 I just found this when trying to solve a similar problem. I also found a solution at http://www.sagemath.org/doc/reference/plotting/sage/plot/graphics.html
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)Tue, 07 Apr 2015 16:48:45 +0200https://ask.sagemath.org/question/7518/size-of-labels-on-a-plot/?answer=26457#post-id-26457Answer by ppurka for <p>dear all:</p>
<p>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.</p>
<p>Thank you</p>
https://ask.sagemath.org/question/7518/size-of-labels-on-a-plot/?answer=14761#post-id-14761I think it is currently not possible to do so. Setting the `fontsize` sets the font size for everything except the legend labels.Mon, 08 Apr 2013 14:17:33 +0200https://ask.sagemath.org/question/7518/size-of-labels-on-a-plot/?answer=14761#post-id-14761