[Matplotlib-users] [matplotlib-users] Using variables in annotations

2009-12-31 Thread Manuel Wittchen
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

Re: [Matplotlib-users] Problem generating postscript

2009-12-31 Thread Jouni K . Seppänen
Eric Emsellem eemse...@eso.org writes: regarding my last post, I still have pb generating simple eps files. Can you be more specific about the last post you are referring to? I searched using Gmane and didn't find anything recent:

Re: [Matplotlib-users] [matplotlib-users] Using variables in annotations

2009-12-31 Thread Johan Grönqvist
Manuel Wittchen skrev: 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)) I feel that a main advantage of matplotlib