[sympy] How to add a legend to sympy.Plot

2009-11-24 Thread archeryguru2000
Hello all, I'm trying to get a legend to appear on my plots, when plotting multiple functions on the same graph. Does anyone have any insight into how I could add a legend to my plots? I'm assuming it would be something similar to: >>> sympy.legend() or >>> sympy.Plot('blah, blah, blah', legend=

Re: [sympy] How to add a legend to sympy.Plot

2009-11-24 Thread Ondrej Certik
Hi Archery, On Tue, Nov 24, 2009 at 10:51 AM, archeryguru2000 wrote: > Hello all, I'm trying to get a legend to appear on my plots, when > plotting multiple functions on the same graph.  Does anyone have any > insight into how I could add a legend to my plots? > > I'm assuming it would be somethi

[sympy] why doesn't x(1) complain?

2009-11-24 Thread smichr
The following does not complain: ### >>> var('x') x >>> x(1) x(1) ### I wish this would raise an error... If x isn't a function, what meaning would x(1) have? One problem with no warning being given is that if you import everything from symp.abc as in "from symp.abc import *" you will wipe out S

Re: [sympy] why doesn't x(1) complain?

2009-11-24 Thread Ronan Lamy
Le mardi 24 novembre 2009 à 19:12 -0800, smichr a écrit : > The following does not complain: > > ### > >>> var('x') > x > >>> x(1) > x(1) > ### > > I wish this would raise an error... If x isn't a function, what > meaning would x(1) have? One problem with no warning being given is > that if you i