特牛生活网

python Matplotlib 系列教程(七)——从文件加载数据并绘制-CSDN博客

网友收藏
文章浏览阅读1w次,点赞4次,收藏51次。本章节我们将要学习如何读取一个文件的内容,并根据文件的内容进行绘制。比如从csv文件读取数据,从txt文件读取数据等。# -*- coding: utf-8 -*-import matplotlib.pyplot as pltimport csvfrom matplotlib.font_manager import FontPropertiesfont = FontProperti...