Hi,

Is it possible to print the value of a variable in an annotation?
Example:

gradient = 2.0
intercept = 3.0
r-value = 0.99

ax.annotate('f(x) = gradient * x + intercept R^2 = r-value',
xy=(2.9,-0.75), xytext=(2.9,-0.75))

Where gradient, intercept and r-value should be replaced by the value
of the variables in the output.

Regards and a happy new year!
Manuel Wittchen

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to