Introduction to matplotlib
Graphs and other visual representations have become more important in explaining many complex financial concepts, trading strategies, and formulas.
In this section, we discuss the matplotlib
module, which is used to create various types of graphs. In addition, the module will be used intensively in Chapter 10, Options and Futures, when we discuss the famous Black-Scholes-Merton option model and various trading strategies. The matplotlib
module is designed to produce publication-quality figures and graphs. The matplotlib
module depends on NumPy and SciPy, which were discussed in the previous sections. To save generated graphs, there are several output formats available, such as PDF, Postscript, SVG, and PNG.
How to install ...
Get Python for Finance - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.