I am trying to write R^2=0.8 over the python graph with help of code

plt.text(0.3, 0.5, '$R^2$' ==0.8, fontsize = 22)

'False' come over the graph.

When I write

plt.text(0.3, 0.5, '$R^2$', fontsize = 22)

Then 'R^2' comes over the graph

How to write R^2=0.8 over the graph?

Similar questions and discussions