Ask Your Question
1

How can I put math symbols in a plot?

asked 2016-03-13 14:33:58 -0500

Niksirat gravatar image

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-03-14 08:26:42 -0500

ndomes gravatar image

For example:

P = plot(1/x^2,1,5)
P += text(r'$\frac{1}{x^2} $',(2,0.4),fontsize=16)
P.show()
edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-03-13 14:33:58 -0500

Seen: 99 times

Last updated: Mar 14 '16