Tutorial 8- Matplotlib (Simple Visualization Library)
[ad_1]
Hello All,
Welcome to the Python Crash Course. In this video we will understand about as a simple visualization library called as matplotlib library
github url : https://github.com/krishnaik06/Machine-Learning-in-90-days
Support me in Patreon: https://www.patreon.com/join/2340909?
Connect with me here:
Twitter: https://twitter.com/Krishnaik06
Facebook: https://www.facebook.com/krishnaik06
instagram: https://www.instagram.com/krishnaik06
If you like music support my brother’s channel
https://www.youtube.com/channel/UCdupFqYIc6VMO-pXVlvmM4Q
Buy the Best book of Machine Learning, Deep Learning with python sklearn and tensorflow from below
amazon url:
https://www.amazon.in/Hands-Machine-Learning-Scikit-Learn-Tensor/dp/9352135210/ref=as_sl_pc_qf_sp_asin_til?tag=krishnaik06-21&linkCode=w00&linkId=a706a13cecffd115aef76f33a760e197&creativeASIN=9352135210
You can buy my book on Finance with Machine Learning and Deep Learning from the below url
amazon url: https://www.amazon.in/Hands-Python-Finance-implementing-strategies/dp/1789346371/ref=as_sl_pc_qf_sp_asin_til?tag=krishnaik06-21&linkCode=w00&linkId=ac229c9a45954acc19c1b2fa2ca96e23&creativeASIN=1789346371
Subscribe my unboxing Channel
https://www.youtube.com/channel/UCjWY5hREA6FFYrthD0rZNIw
Below are the various playlist created on ML,Data Science and Deep Learning. Please subscribe and support the channel. Happy Learning!
Deep Learning Playlist: https://www.youtube.com/watch?v=DKSZHN7jftI&list=PLZoTAELRMXVPGU70ZGsckrMdr0FteeRUi
Data Science Projects playlist: https://www.youtube.com/watch?v=5Txi0nHIe0o&list=PLZoTAELRMXVNUcr7osiU7CCm8hcaqSzGw
NLP playlist: https://www.youtube.com/watch?v=6ZVf1jnEKGI&list=PLZoTAELRMXVMdJ5sqbCK2LiM0HhQVWNzm
Statistics Playlist: https://www.youtube.com/watch?v=GGZfVeZs_v4&list=PLZoTAELRMXVMhVyr3Ri9IQ-t5QPBtxzJO
Feature Engineering playlist: https://www.youtube.com/watch?v=NgoLMsaZ4HU&list=PLZoTAELRMXVPwYGE2PXD3x0bfKnR0cJjN
Computer Vision playlist: https://www.youtube.com/watch?v=mT34_yu5pbg&list=PLZoTAELRMXVOIBRx0andphYJ7iakSg3Lk
Data Science Interview Question playlist: https://www.youtube.com/watch?v=820Qr4BH0YM&list=PLZoTAELRMXVPkl7oRvzyNnyj1HS4wt2K-
You can buy my book on Finance with Machine Learning and Deep Learning from the below url
amazon url: https://www.amazon.in/Hands-Python-Finance-implementing-strategies/dp/1789346371/ref=sr_1_1?keywords=krish+naik&qid=1560943725&s=gateway&sr=8-1
🙏🙏🙏🙏🙏🙏🙏🙏
YOU JUST NEED TO DO
3 THINGS to support my channel
LIKE
SHARE
&
SUBSCRIBE
TO MY YOUTUBE CHANNEL
Source
[ad_2]
Nice one 👌👍🏻
x = np.arange(0,4*np.pi,0.1)
y = np.sin(x)
Sir this two lines are not cleared into my mind
In tutorial 7 you said the next video will be on reading data from MongoDB and SQL lite. Is there any video for that??
sir im not able import matplot library…im getting an error as 'plt not defined' in jupyter
I like ur videos because clear all doubts in such a short time period…
Hi Krish, You're doing a great job by providing the learners with free tutorials. I would like to make one correction here (at around 19:10 minutes)
NumPy.random.normal(loc, std, size) creates n (=size) random variables with mean = loc, and std = std.
In your case data is basically a list of three arrays, each of which is a collection of 100 random normal variables with mean 0 and three different values of std respectively [given by range(1,4)]
5:58
in the new version note that:
Format 'jpg' is not supported (supported formats: eps, pdf, pgf, png, ps, raw, rgba, svg, svgz)
hi sir can you clearly explain what is use of subplot and plot what is the difference between two of these
hi sir but how we differentiate 2 rows and 2 col in the subplot diagram
this video really needs editing the voice is nnot clear it keeps on fluctuating, that' why these videos did not get much attention.Pay more attention to things like that.
Thanks very much Krish Naik, now the first thong i do every morning and at night is listen to your video and practice what you teach; great work. Really appreciate your efforts
Thanks for sharing this video it is Nice…
Yes I have tried to plot without "%matplotlin inline%"
and it is working.. also without plt.show() maybe it is version issue
x=np.arange(0,10)
y=np.arange(11,20)
plt.scatter(x,y,c='r')
For the above code snippet i am getting the below error.
ValueError Traceback (most recent call last)
<ipython-input-5-75a3b08e1b3f> in <module>
3 ##scatter plot
4
—-> 5 plt.scatter(x,y,c='r')
F:Data ScienceAnacondalibsite-packagesmatplotlibpyplot.py in scatter(x, y, s, c, marker, cmap, norm, vmin, vmax, alpha, linewidths, verts, edgecolors, plotnonfinite, data, **kwargs)
2839 verts=verts, edgecolors=edgecolors,
2840 plotnonfinite=plotnonfinite, **({"data": data} if data is not
-> 2841 None else {}), **kwargs)
2842 sci(__ret)
2843 return __ret
F:Data ScienceAnacondalibsite-packagesmatplotlib__init__.py in inner(ax, data, *args, **kwargs)
1587 def inner(ax, *args, data=None, **kwargs):
1588 if data is None:
-> 1589 return func(ax, *map(sanitize_sequence, args), **kwargs)
1590
1591 bound = new_sig.bind(ax, *args, **kwargs)
F:Data ScienceAnacondalibsite-packagesmatplotlibaxes_axes.py in scatter(self, x, y, s, c, marker, cmap, norm, vmin, vmax, alpha, linewidths, verts, edgecolors, plotnonfinite, **kwargs)
4434 y = np.ma.ravel(y)
4435 if x.size != y.size:
-> 4436 raise ValueError("x and y must be the same size")
4437
4438 if s is None:
ValueError: x and y must be the same size
Any help will be appreciated.
Hello Krish…Thank you so much for the lecture.
Correct me if I am wrong, as you told the use of (%matplotlib inline).
First I have written the matplotlib import line & then (%matplotlib inline) & run it. So it got executed without plt.show().
Later I removed (%matplotlib inline) & run it, but still it's reflecting the output, without writing plt.show() command.
I am running this on an online cloud env https://cocalc.com/ ( not in jupyter)
Please advise.
Sir thanks for uploading..just some voice clearity is needed
Can u please upload with clear voice…
please make more tutorials on deployment
krish please share the ml syllabus.
Sound need to more clear.. sound fluctuating..
Great Video… Can you please do it on PLOTLY VISUALIZATION…
Sir pura ek din ka intezaar krna pada is video ka
Kindly do some using seaborn ..
Desperately waiting for this