# 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

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

add a comment

1

`fontsize`

sets the font size for everything except the legend labels.

2

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)
```

1

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)
```

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

Seen: **332 times**

Last updated: **Apr 07 '15**

Plot doesn't seem to evaluate my function

automatic zordering with plots

Plotting arrows at the edges of a curve

Overlaying plots in a specific order

How to make pygraphviz and sage compatible?

Please help me to draw f(x) = sin(x) if x<=0 and f(x)=cos(x) if x>1

Add graphs produced by a for loop?

plot digraph use adjacency matrix

Plot the intersection of two surfaces (or solutions of a system of eqs)

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.