result in the graph

How about:

import matplotlib.pyplot as plt

x_sqr = 42.42

fig = plt.figure()
ax = fig.add_subplot(111)
ax.text(3, 2, r'x$^2$ = %.2f' % x_sqr)



---------- Forwarded message ----------
From: Scott Sinclair <>
Date: 17 May 2011 14:52
Subject: Re: [Matplotlib-users] result in the graph
To: Waleria <waleriantunes@...287...>

On 17 May 2011 14:35, Waleria <waleriantunes@...287...> wrote:

Hello all,

I have this code: (part that generates the chart)
. So i need to show a result in the graph, i have the line 69 (variable
x_sqr) in code, i need to show tthe result of variable in the graph. How can
i do this?