Computing for Data Science and Statistics STAT679
STAT679
Computing for Data Science
and Statistics
Lecture 10: matplotlib
Plotting with matplotlib
matplotlib is a plotting library for use in Python
Similar to R¡¯s ggplot2 and MATLAB¡¯s plotting functions
For MATLAB fans, matplotlib.pyplot implements MATLAB-like plotting:
Sample plots with code:
Basic plotting: matplotlib.pyplot.plot
matplotlib.pyplot.plot(x,y)
plots y as a function of x.
matplotlib.pyplot(t)
sets x-axis to np.arange(len(t))
Basic plotting: matplotlib.pyplot.plot
Jupyter ¡°magic¡± command to make
images appear in-line.
Reminder: Python ¡®_¡¯ is a
placeholder, similar to MATLAB
¡®~¡¯. Tells Python to treat this like
variable assignment, but don¡¯t store
result anywhere.
Customizing plots
Second argument to pyplot.plot
specifies line type, line color, and
marker type.
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- free data science courses online
- best data science certification
- data analysis descriptive statistics excel
- probability and statistics for engineers pdf
- probability and statistics for engineers 9th pdf
- statistics for data scientists
- data science vs data analysis
- best data science graduate programs
- data science book pdf download
- data science vs analyst
- practical statistics for data science
- practical statistics for data scientists