matplotlib

introduction-to-matplotlib-data-

2019-01-17  本文已影响4人  榴莲气象

https://heartbeat.fritz.ai/introduction-to-matplotlib-data-visualization-in-python-d9143287ae39

There are two key components in a Plot; namely, Figure and Axes.

image.png

two Approaches for creating Plots
Functional Approach: Using the basic matplotlib command, we can easily create a plot. Let’s plot an example using two Numpy arrays x and y :

  1. Object oriented Interface: This is the best way to create plots. The idea here is to create Figure objects and call methods off it. Let’s create a blank Figure using the .figure() method.
上一篇 下一篇

猜你喜欢

热点阅读