filmov
tv
Matplotlib Python Tutorial for Beginners
Показать описание
This is a Python anaconda tutorial for help with coding, programming, or computer science. These are short python videos dedicated to troubleshooting python problems and learning Python syntax. For more videos see Python Help playlist by Rylan Fowers.
Marplot lib intro
This is a quick intro to plotting lambda functions in marplot lib
From marplot lib we import pyplot as plt
Also, for this example we will need some bumpy so, import bumpy as np
Here we have some colors of the line. it’s just another parameter you put. So here is the color key
You can also change the point markers. Here is a key for those.
Here are some different lines you can make
and lastly here is an example of how you can combine all of those options
Here is the graph wit hate y axis x axis and the 100 dots between -10 and 10 following the sin function
For one last example, say we do the same thing but we add a dash dash. This will add a dashed line between all the points.
There are many things you can do to customize your graph,
Again here are the many options.. You can combine them in any way you desire.
There you have it, that is some of the basics of marplot lib plotting in python
#PythonMarathon #LearnPython #PythonTutorial