# -*- coding: utf-8 -*-
"""
-------------------------------------------------
@File: 创建几个子图.py
@Author : hyh
@Ide: Pycharm
@Contact: hyh_youxiang@163.com
@Date: 19-7-15 上午10:56
-------------------------------------------------
Description :
建议刚开始读一下官网对这个库的基本介绍,英文阅读有点吃力的话,使用谷歌浏览器的谷歌翻译插件,网页全部翻译为中文阅读即可。
官网:
https://matplotlib.org/tutorials/introductory/usage.html#sphx-glr-tutorials-introductory-usage-py
-------------------------------------------------
"""
import matplotlib.pyplot as plt
def main():
fig = plt.figure() # an empty figure with no axes
fig.suptitle('No axes on this figure') # Add a title so we know which it is
fig, ax_lst = plt.subplots(2, 2) # a figure with a 2x2 grid of Axes
fig.show()
if __name__ == '__main__':
main()