np.linspace(-np.pi,np.pi,100)plt.plot((sin(x)*sin(x))/x)NameError Traceback (most recent call last) Cell In[2], line 2 1 np.linspace(-np.pi,np.pi,100) ----> 2 plt.plot((sin(x)*sin(x))/x) NameError: name 'sin' is not defined
<span style="color: rgb(31, 31, 31); font-family: "Google Sans", Roboto, RobotoDraft, Helvetica, Arial, sans-serif; font-size: 22px; font-variant-ligatures: no-contextual;">Not getting graph for plot(sin(x)*sin(x)/x </span><span style="font-family: Arial, Helvetica, sans-serif; font-size: small;">Displayed with Name Error: name 'x' is not defined</span><span style="color: rgb(31, 31, 31); font-family: "Google Sans", Roboto, RobotoDraft, Helvetica, Arial, sans-serif; font-size: 22px; font-variant-ligatures: no-contextual;"></span><span style="color: rgb(31, 31, 31); font-family: "Google Sans", Roboto, RobotoDraft, Helvetica, Arial, sans-serif; font-size: 22px; font-variant-ligatures: no-contextual;"></span><span style="color: rgb(31, 31, 31); font-family: "Google Sans", Roboto, RobotoDraft, Helvetica, Arial, sans-serif; font-size: 22px; font-variant-ligatures: no-contextual;"></span><span style="color: rgb(31, 31, 31); font-family: "Google Sans", Roboto, RobotoDraft, Helvetica, Arial, sans-serif; font-size: 22px; font-variant-ligatures: no-contextual;"></span>
please explain U,V Sigma
I am getting syntax error while executing linspace command meanwhhile the plot command also not executing.
is this is correct? In [21]: x=linspace(-pi,pi,100)In [22]: plot((sin(x)*sin(x))/x ...: )Out[22]: [<matplotlib.lines.Line2D at 0x9d513b8>]In [23]:
when I enter my command the figure or the graph doesn't pop up and I am using MacBook Pro with ipython 8.23 and python 3.12
in python if I am typing the question it is showing NameError: name 'sequence_name' is not defined
Plot command is not working, even after including python files.
I am using windows 11 and jupyter notebook instead of Linux. Graph is not drawing in any case it just showing the x,y coordinates .Name error is occurring most of the times - name 'plot' is not defined, name 't' is not defined, name 'cos' is not defined , name 'sin' is not defined. So I am stuck and I couldn't able to find solution in google.
Plot (sin(x)*sin(x))/x. 1. Save the plot as sinsquarebyx.pdf 2. Zoom and find the maxima. 3. Bring it back to initial position.
I have imported numpy ,matplotlib while typing 'linspace?' I am getting error:object 'linspace' not foundHow to solved this error Sir?I have tried ipython --pylabafter that I am getting attributeError : 'version_info' object has no attribute '_version_'
How do I install matplotlib pls tell me the
In this question,plot(sin(x)*sin(x))/x.what is the value of x?
I did exactly the same as taught in the tutorial and ran the plot command but I am not able to see the plot.Kindly help me out.....it's showing figure 1 but the plot is not visible , only loading can be seen.
How can we solve Exercise 1?
I have problem in running the linspace and plot commands ,even tho I've installed all 3 commands (ipython,numpy,matplotlib). It is showing ERROR:name linspace/plot command is not defined.... please help me out for practicing.
Sir/ Madam,While I am entering "import matplotlib" command in ipython3, it shows the following:Microsoft Windows [Version 10.0.17134.1667](c) 2018 Microsoft Corporation. All rights reserved.C:\Users\DELL>ipython3Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)]Type 'copyright', 'credits' or 'license' for more informationIPython 7.16.1 -- An enhanced Interactive Python. Type '?' for help.In [1]: import numpyIn [2]: import matplotlib---------------------------------------------------------------------------ImportError Traceback (most recent call last)<ipython-input-2-0484cd13f94d> in <module>----> 1 import matplotlibc:\users\dell\appdata\local\programs\python\python36\lib\site-packages\matplotlib\__init__.py in <module> 172 173--> 174 _check_versions() 175 176c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\matplotlib\__init__.py in _check_versions() 157 # Quickfix to ensure Microsoft Visual C++ redistributable 158 # DLLs are loaded before importing kiwisolver--> 159 from . import ft2font 160 161 for modname, minver in [ImportError: DLL load failed: The specified module could not be found.Ultimately I am unable to run %pylab.
i am using Python 3.4.3 windows 64 bit based, linspace(), len(), clf() function are not working in this version. how to do these function in python 3.4.3 version?
DLL Import Failed: Specific Module not foundDear Sir/Ma'am, Its showing this kind of error when running command %pylab in ipython interface.I also installed the C++ Microsoft file from the link given in the installation sheet but its not working.Kindly give some solution to this.
t=linspace(-pi,pi,100) plot(t,cos(t)) -->TCL ERROR couldn't open "/usr/share/matplotlib/mpl-data/images/matplotlib.ppm": no such file or directory. please help me. sir/maim
Hi I am unable to solve Exercise 1: plot(sin(x)*sin(x))*xPlease help me with the solution
how to find maxima in plotted graph? sin sq fn?difference between plot(sin(s)*sin(s))/s and plot((sin(s)*sin(s))/s)two different graphs which one is correct
I am using ubuntu 18.04. installed latest version of python 3.7 version. done all sorts of installing pylab but its always giving an error "ModuleNotFoundError: no module named matplotlib". please help
Throwing error for x value not found
before executing plot(sin(t)*sin(t))/t it clear using clf()and the execute this command plot(sin(t)*sin(t))/t
Explain in detail sin(x) assignment and concept of finding maxima
x = linspace(1,100, 50)plot(sin(x)*sin(x))/xwhen i tried to plot this it shows a graph but comes in with a no of errorlikeTypeError: unsupported operand type(s) for /: 'Line2D' and 'float'how to solve this issue
It gives an error "name 'x' is not defined."I used the command -- plot(x, (sin(x)*sin(x))/x)
(sin(x)*sin(x))/x not executed..please explain
what is the value of x should setif i assign same as t it shows error in cmd window
Plot (sin(x)*sin(x))/xwhen i am executing this i am getting a message that name 'x' is not defined.will you please tell me what is the mistake
i am not getting a smooth curve on executing the plot function for sin and for cos.will you explain me why.
when i m try to run %pylab , the interpreter showing DLL load failed error
what is the difference between plot() command in python, plot() command in R programming, i think both are working same manner?it looks all commands in python are same as in R-programming sir? then which language i have to prefer, either R-programming or Python for mathematics computations ,data analysis etc .?
plot (sin(x)*sin(x))/xin this how to define 'x' value?
Hi..I am using Jupyter notepad with python3 online...after plotting the graph i couldnt find maxima for the same..Can anyone help me out of this?
how to install matplotlib in ipython3
How to write this command in interpreter
For linspace(0,1,200) we get 200 evenly spaced samples.My doubt is how to you determine the points,especially why is it restricted to 8 decimal places
plot(sin(x)*sin(x))/xshowing error as " name x is not defined"
Respected sir,In this video, you have shown to plot the functions of sin and cos. Apart from these two, what are the other functions we can plot?
how to install pylab
%pylab function not working.. tried install numpy and also download C++ visual C as suggested in the installation sheet the prob still persists
what should be the value of x in the given problem i have given the value as x=linspace(-1,1,100) but it is giving the plot with errors
i want to know how does cos(t) and sin(t) differ?
Applied the commandT=LINSPACE(-PI,PI,100)T=PLOT(T,SIN(T)iN THIS CODE, I DRAWN A PLOT, SO i WANT TO KNOW ABOUT THE "Y AXES " VALUES.
What are the different colors we can use such as green,blue and many more.i wrote
is working on ipython is same as working on python 3.5?how to use pylab (plot library ) on idle python 3.5
Dear sir/MadamMatplot commands are not working in Ipython
question not executed??x is not defined??
Microsoft Windows [Version 10.0.10240](c) 2015 Microsoft Corporation. All rights reserved.C:\\Users\\Admin>ipython3Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)]Type 'copyright', 'credits' or 'license' for more informationIPython 7.5.0 -- An enhanced Interactive Python. Type '?' for help.In [1]: numpy, matplotlib---------------------------------------------------------------------------NameError Traceback (most recent call last)<ipython-input-1-78cad429aec3> in <module>----> 1 numpy, matplotlibNameError: name 'numpy' is not definedIn [2]: import numpyIn [3]: import matplotlib---------------------------------------------------------------------------ImportError Traceback (most recent call last)<ipython-input-3-0484cd13f94d> in <module>----> 1 import matplotlibc:\\users\\admin\\appdata\\local\\programs\\python\\python37-32\\lib\\site-packages\\matplotlib\\__init__.py in <module> 198 199--> 200 _check_versions() 201 202c:\\users\\admin\\appdata\\local\\programs\\python\\python37-32\\lib\\site-packages\\matplotlib\\__init__.py in _check_versions() 192 ("pyparsing", "2.0.1"), 193 ]:--> 194 module = importlib.import_module(modname) 195 if LooseVersion(module.__version__) < minver: 196 raise ImportError("Matplotlib requires {}>={}; you have {}"c:\\users\\admin\\appdata\\local\\programs\\python\\python37-32\\lib\\importlib\\__init__.py in import_module(name, package) 125 break 126 level += 1--> 127 return _bootstrap._gcd_import(name[level:], package, level) 128 129ImportError: DLL load failed: The specified module could not be found.In [4]: import numpy, matplotlib---------------------------------------------------------------------------ImportError Traceback (most recent call last)<ipython-input-4-1ba94c9f5666> in <module>----> 1 import numpy, matplotlibc:\\users\\admin\\appdata\\local\\programs\\python\\python37-32\\lib\\site-packages\\matplotlib\\__init__.py in <module> 198 199--> 200 _check_versions() 201 202c:\\users\\admin\\appdata\\local\\programs\\python\\python37-32\\lib\\site-packages\\matplotlib\\__init__.py in _check_versions() 192 ("pyparsing", "2.0.1"), 193 ]:--> 194 module = importlib.import_module(modname) 195 if LooseVersion(module.__version__) < minver: 196 raise ImportError("Matplotlib requires {}>={}; you have {}"c:\\users\\admin\\appdata\\local\\programs\\python\\python37-32\\lib\\importlib\\__init__.py in import_module(name, package) 125 break 126 level += 1--> 127 return _bootstrap._gcd_import(name[level:], package, level) 128 129ImportError: DLL load failed: The specified module could not be found.In [5]: import numpy
There are two ways I tried 1) savefig('C://WINDOWS//SYTEM32'), I tried and executed successfully. But when I tried using as per our regular path like as follows2) savefig('C:\\windows\\system32') it doesnt work. Can we use path like second method or not???
Hi , in this question we have only one parameter. By using one parameter how can we plot the given statement. and the '/x' is after the plot argument statement. so how will it works? can you explain
Hello Madam/sir,I am unable to import numpy and matplotlab in ipython3 .please solve my problem
I installed matplotlib but it shows version related message and matplotlib is not import.
1139 visits
Outline:Python 3.4.3 ను ఉపయోగించడం Ipython వర్షన్ 5.1.0 ను ఉపయోగించడం pylab తో IPython ను ప్రారంభించడం ఒకవేళ matplotlib ఇన్స్టాల్ చేయబడకపోతే ImportError ను పొందవచ్చు clf() ఫంక్షన్ ఒక ప్రాంతంలో సమానంగా ఖాళీ పాయింట్లను సృష్టించడానికి లిన్స్పేస్ ఫంక్షన్ను ఉపయోగించడం లిన్ ఫంక్షన్ ను ఉపయోగించి వరుసల యొక్క పొడవును కనుగొనడం ప్లాట్ ను ఉపయోగించి గణిత విధులు ప్లాట్ చేయడం clf ను ఉపయోగించి డ్రాయింగ్ ప్రాంతాన్ని శుభ్రంచేయడం ప్లాట్ విండో యొక్క UI లో- సేవ్, జూమ్,మూవ్ ఆక్సిస్, బ్యాక్ మరియు ఫార్వర్డ్ ఇంకా హోమ్ వంటి బటన్స్ యొక్క వాడుక
Python 3.4.3 ను ఉపయోగించడం Ipython వర్షన్ 5.1.0 ను ఉపయోగించడం pylab తో IPython ను ప్రారంభించడం ఒకవేళ matplotlib ఇన్స్టాల్ చేయబడకపోతే ImportError ను పొందవచ్చు clf() ఫంక్షన్ ఒక ప్రాంతంలో సమానంగా ఖాళీ పాయింట్లను సృష్టించడానికి లిన్స్పేస్ ఫంక్షన్ను ఉపయోగించడం లిన్ ఫంక్షన్ ను ఉపయోగించి వరుసల యొక్క పొడవును కనుగొనడం ప్లాట్ ను ఉపయోగించి గణిత విధులు ప్లాట్ చేయడం clf ను ఉపయోగించి డ్రాయింగ్ ప్రాంతాన్ని శుభ్రంచేయడం ప్లాట్ విండో యొక్క UI లో- సేవ్, జూమ్,మూవ్ ఆక్సిస్, బ్యాక్ మరియు ఫార్వర్డ్ ఇంకా హోమ్ వంటి బటన్స్ యొక్క వాడుక
Show video info
Pre-requisite