Using plot command interactively - Bengali
- subtitles off
- captions off
- English
- Bengali
- Questions posted on Forums
- Python 3.4.3 Tutorials - Bengali
-
Sin not defined
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
09-10M 0-10S unanswered Atharva_217
Question posted on: May 30, 2023, 6:41 p.m.
-
Sin not defined
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
09-10M 0-10S unanswered Atharva_217
Question posted on: May 30, 2023, 6:41 p.m.
-
Not getting graph for plot(sin(x)*sin(x)/x
<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>
10-11M 10-20S Absolute
Answer last updated on: June 18, 2024, 12:35 p.m.
-
Sin not defined
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
09-10M 0-10S Atharva_217
Answer last updated on: June 18, 2024, 12:24 p.m.
-
Advance Matrix Operator
please explain U,V Sigma
04-05M 50-60S 26_nkarankar
Answer last updated on: June 18, 2024, 12:09 p.m.
-
plotting command
I am getting syntax error while executing linspace command meanwhhile the plot command also not executing.
11-12M 10-20S vangara
Answer last updated on: June 18, 2024, 11:53 a.m.
-
About value
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]:
08-09M 20-30S pritishataramnevse.1234567890
Answer last updated on: May 16, 2024, 12:46 p.m.
-
plot lines
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
04-05M 50-60S prisha28
Answer last updated on: April 23, 2024, 3:23 p.m.
-
plot lines
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
04-05M 50-60S prisha28
Answer last updated on: April 23, 2024, 3:22 p.m.
-
plot lines
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
04-05M 50-60S prisha28
Answer last updated on: April 23, 2024, 3:21 p.m.
-
Assignment
in python if I am typing the question it is showing NameError: name 'sequence_name' is not defined
08-09M 10-20S prisha28
Answer last updated on: April 23, 2024, 3:19 p.m.
-
command not working
Plot command is not working, even after including python files.
04-05M 40-50S Indrajap
Answer last updated on: March 10, 2024, 11:56 a.m.
-
Sin not defined
09-10M 0-10S Atharva_217
Answer last updated on: July 24, 2023, 12:47 p.m.
-
Plot command
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.
04-05M 50-60S Ashith_Raj_K
Answer last updated on: April 10, 2023, 4:55 p.m.
-
I an unable to solve the below question.Please help
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.
08-09M 0-10S Partha2003
Answer last updated on: Jan. 14, 2023, 12:31 p.m.
-
linspace
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_'
02-03M 10-20S amkarbrahma9773@gmail.com
Answer last updated on: May 31, 2022, 10:38 a.m.
-
How do I install matplotlib .
How do I install matplotlib pls tell me the
03-04M 0-10S Minjal
Answer last updated on: Feb. 6, 2022, 6:16 p.m.
-
Exercise 1
In this question,plot(sin(x)*sin(x))/x.what is the value of x?
08-09M 0-10S ashna@cek.ac.in
Answer last updated on: Jan. 19, 2022, 2:43 p.m.
-
plot command
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.
11-12M 10-20S 20001002020
Answer last updated on: Sept. 22, 2021, 12:01 a.m.
-
Exercise question
How can we solve Exercise 1?
08-09M 0-10S AnandPatel
Answer last updated on: May 6, 2021, 11:42 a.m.
-
practice code
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.
02-03M 40-50S pavureddy1234@gmail.com
Answer last updated on: April 19, 2021, 11:22 a.m.
-
Import Error: DLL load failed: The specified module could not be found
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.
01-02M 50-60S tsan.chou1993@gmail.com
Answer last updated on: March 29, 2021, 11:55 a.m.
-
some lib function is not working
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?
05-06M 10-20S rajendaras@yahoo.co.in
Answer last updated on: Nov. 6, 2020, 9:13 a.m.
-
Unable to run "pylab"
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.
01-02M 10-20S sourav44verma
Answer last updated on: Nov. 5, 2020, 10:02 a.m.
-
don't show figure when i run code
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
06-07M 50-60S divesh7923
Answer last updated on: Sept. 7, 2020, 9:51 p.m.
-
tcl error when i run code don't show figure
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
04-05M 50-60S divesh7923
Answer last updated on: Sept. 7, 2020, 9:48 p.m.
-
Unable to solve Exercise 1
Hi I am unable to solve Exercise 1: plot(sin(x)*sin(x))*xPlease help me with the solution
08-09M 0-10S Kaustabh3
Answer last updated on: June 5, 2020, 2:22 p.m.
-
Finding Maxima on graph
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
02-03M 10-20S mumthaj89
Answer last updated on: May 13, 2020, 2:02 p.m.
-
Installing Pylab
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
02-03M 0-10S akhilesh.thool@gmail.com
Answer last updated on: May 6, 2020, 1:12 p.m.
-
plot() function error
Throwing error for x value not found
08-09M 10-20S thirukumar
Answer last updated on: May 2, 2020, 6:01 p.m.
-
plot(sin(t)*sin(t))/t
before executing plot(sin(t)*sin(t))/t it clear using clf()and the execute this command plot(sin(t)*sin(t))/t
08-09M 10-20S anjalideore13@gmail.com
Answer last updated on: April 27, 2020, 9:48 p.m.
-
Sin(x) assignment at 8:13
Explain in detail sin(x) assignment and concept of finding maxima
08-09M 10-20S meghna_bhatia
Answer last updated on: April 23, 2020, 11:47 a.m.
-
error while plotting plot(sin(x)*sin(x))/x
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
06-07M 10-20S varuntk
Answer last updated on: April 22, 2020, 11:15 a.m.
-
Plot (sin(x)*sin(x))/x
It gives an error "name 'x' is not defined."I used the command -- plot(x, (sin(x)*sin(x))/x)
08-09M 10-20S sakshithakur18@gmail.com
Answer last updated on: April 22, 2020, 10:11 a.m.
-
Exercise 1:
(sin(x)*sin(x))/x not executed..please explain
08-09M 20-30S madhurigawali31@gmail.com
Answer last updated on: April 21, 2020, 6:27 p.m.
-
value of x
what is the value of x should setif i assign same as t it shows error in cmd window
08-09M 20-30S Rajneesh.ch
Answer last updated on: April 19, 2020, 11:40 p.m.
-
plot function
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
05-06M 20-30S Hema1122
Answer last updated on: April 12, 2020, 2:29 p.m.
-
plot function
i am not getting a smooth curve on executing the plot function for sin and for cos.will you explain me why.
05-06M 20-30S Hema1122
Answer last updated on: April 12, 2020, 2:27 p.m.
-
plot function
i am not getting a smooth curve on executing the plot function for sin and for cos.will you explain me why.
05-06M 20-30S Hema1122
Answer last updated on: April 12, 2020, 12:37 p.m.
-
DLL load failed
when i m try to run %pylab , the interpreter showing DLL load failed error
02-03M 0-10S Cms
Answer last updated on: June 22, 2019, 2:01 p.m.
-
plot
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 .?
09-10M 10-20S G.Shankarr
Answer last updated on: June 22, 2019, 1:36 p.m.
-
phyton3-matlablib
plot (sin(x)*sin(x))/xin this how to define 'x' value?
08-09M 10-20S anithachirra
Answer last updated on: June 22, 2019, 1:20 p.m.
-
Plotting graph
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?
07-08M 10-20S ANITHAM11
Answer last updated on: June 22, 2019, 12:59 p.m.
-
how to install matplotlib in ipython3
how to install matplotlib in ipython3
01-02M 0-10S AMITKUMARSHINDE57
Answer last updated on: June 22, 2019, 12:39 p.m.
-
Exercise 1
How to write this command in interpreter
08-09M 0-10S tdcse
Answer last updated on: June 22, 2019, 12:27 p.m.
-
QUERY ON linspace
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
03-04M 30-40S swetha.ece
Answer last updated on: June 22, 2019, 12:27 p.m.
-
error
plot(sin(x)*sin(x))/xshowing error as " name x is not defined"
08-09M 20-30S feridoz
Answer last updated on: June 22, 2019, 12:14 p.m.
-
Query on matplotlib functions
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?
07-08M 10-20S Vimala.ece
Answer last updated on: June 22, 2019, 12:12 p.m.
-
pylab
how to install pylab
02-03M 50-60S anithachirra
Answer last updated on: June 22, 2019, 12:11 p.m.
-
%pylab function not working
%pylab function not working.. tried install numpy and also download C++ visual C as suggested in the installation sheet the prob still persists
01-02M 0-10S Mudakavi
Answer last updated on: June 22, 2019, 12:10 p.m.
-
value of x
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
08-09M 10-20S krutika.chhajed@gmail.com
Answer last updated on: June 22, 2019, 12:01 p.m.
-
plotting
i want to know how does cos(t) and sin(t) differ?
06-07M 0-10S palak_desai@yahoo.com
Answer last updated on: June 22, 2019, 12:01 p.m.
-
Related Plot
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.
11-12M 10-20S asutosh1984
Answer last updated on: June 22, 2019, 11:54 a.m.
-
Diffrent Colour Arguments
What are the different colors we can use such as green,blue and many more.i wrote
02-03M 40-50S kush.patel101140@marwadiuniversity.ac.in
Answer last updated on: June 22, 2019, 11:52 a.m.
-
python
is working on ipython is same as working on python 3.5?how to use pylab (plot library ) on idle python 3.5
00-01M 0-10S Nigam.1611
Answer last updated on: June 22, 2019, 11:30 a.m.
-
Plot commands not working in Ipython
Dear sir/MadamMatplot commands are not working in Ipython
11-12M 10-20S yksawarkar
Answer last updated on: June 22, 2019, 11:25 a.m.
-
plot (sin(x)*sin(x))/x
question not executed??x is not defined??
08-09M 10-20S spiccyshakti
Answer last updated on: June 22, 2019, 11:22 a.m.
-
python workshop
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
01-02M 20-30S Reyana_1985
Answer last updated on: June 21, 2019, 4:42 p.m.
-
How to save a graph in windows ??
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???
01-02M 10-20S rahul.chinchore
Answer last updated on: May 25, 2019, 5:47 p.m.
-
Plot (sin(x)*sin(x)) /x.
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
07-08M 50-60S esthervs
Answer last updated on: May 25, 2019, 1:18 p.m.
-
import numpy and matplotlab in ipython3
Hello Madam/sir,I am unable to import numpy and matplotlab in ipython3 .please solve my problem
00-01M 0-10S ch.gopikrishnaa
Answer last updated on: May 25, 2019, 12:48 p.m.
-
import matplotlib error
I installed matplotlib but it shows version related message and matplotlib is not import.
00-01M 40-50S amrendra91
Answer last updated on: May 25, 2019, 12:23 p.m.
-
1Getting started with IPython
-
Using plot command interactively
-
3Embellishing a plot
-
4Saving plots
-
5Multiple plots
-
6Subplots
-
7Additional features of IPython
-
8Loading Data From Files
-
9Plotting Data
-
10Other Types Of Plots
-
11Plotting Charts
-
12Getting started with Lists
-
13Getting started with for
-
14Getting started with strings
-
15Getting started with files
-
16Statistics
-
17Getting started with arrays
-
18Accessing parts of arrays
-
19Image manipulation using Arrays
-
20Basic Matrix Operations
-
21Advanced Matrix Operations
-
22Least square fit
-
23Basic datatypes and operators
-
24Sequence datatypes
-
25Input-output
-
26Conditional Statements
-
27Loops
-
28Manipulating lists
-
29Manipulating strings
-
30Getting started with tuples
-
31Dictionaries
-
32Sets in Python
-
33Getting Started with Functions
-
34Advanced Features of Functions
-
35Using Python Modules
-
36Writing Python Scripts
-
37Testing and Debugging
-
38Handling Errors and Exceptions
Questions posted on ST Forums:
810 visits
Outline:
পাইথন 3.4.3 ব্যবহার করা Ipython সংস্করণ 5.1.0 ব্যবহার করা প্যাইল্যাব সহ IPython শুরু করা Matplotlib সংস্থাপিত না থাকলে ImportError clf () ফাংশন একই ক্ষেত্রে সমান দুরত্বের পয়েন্ট বানাতে linspace ফাংশন ব্যবহার করা len ফাংশন ব্যবহার করে ক্রমের দৈর্ঘ্য সন্ধান করা প্লট ব্যবহার করে mathematical ফাংশন প্লট করা clf ব্যবহার করে অঙ্কন ক্ষেত্র মুছে ফেলা প্লট উইন্ডোর UI তে বোতামের ব্যবহার যেমন - সংরক্ষণ, জুম, অক্ষ সরানো, পিছন ও সামনে এবং হোম
Width: | 802 | Height: | 600 |
---|---|---|---|
Duration: | 00:11:12 | Size: | 4.9 MB |
Show video info