saving . . . saved (sin(x)*sin(x))/x not working in canopy has been deleted. (sin(x)*sin(x))/x not working in canopy has been hidden .
(sin(x)*sin(x))/x not working in canopy
I get an error message, "TypeError", with a traceback.  It says "unsupported operand type(s) for /: 'Line2D' and 'float'.

Is this command not expected to work in Enthought's canopy?

Python Using-the-plot-command-interactively 07-08 min 10-20 sec 25-07-15, 6:51 a.m. kannan


<span style="line-height: 21.4285717010498px;">Dear User,</span>

The error message has nothing to do with Enthought's canopy. It will show you the same error for any other ipython as well if you don't provide brackets to entire calculation.
Please try plot((sin(x)*sin(x))/x). This will not show you the error message.

Hope this helps.

25-07-15, 12:30 p.m. Trupti
at first define x variable 
x=linspace(-pi,pi,100) < Enter Key >
plot(sin(x)*sin(x)/x) <Enter  Key>
output:- graph will be plotted

22-06-19, 12:03 p.m. kumarvishal

Login to add comment

Log-in to answer to this question.