# How can I put math symbols in a plot?

I want to put math symbols like latex formula in a plot in sagemath. Any idea?

add a comment

How can I put math symbols in a plot?

I want to put math symbols like latex formula in a plot in sagemath. Any idea?

add a comment

1

For example:

```
P = plot(1/x^2,1,5)
P += text(r'$\frac{1}{x^2} $',(2,0.4),fontsize=16)
P.show()
```

Please start posting anonymously - your entry will be published after you log in or create a new account.

Asked: ** 2016-03-13 20:33:58 +0200 **

Seen: **258 times**

Last updated: **Mar 14 '16**

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.