2
我正在学习如何在Python中绘制事物(CSV文件),使用import matplotlib.pyplot as plt
。绘制分隔符为';'的CSV文件。 '(分号+空格)
Column1;Column2;Column3;
1;4;6;
2;2;6;
3;3;8;
4;1;1;
5;4;2;
我可以积以上plt.plotfile('test0.csv', (0, 1), delimiter=';')
的一个,得到如下图所示。
如果我改变分离器从3210(分号)','
(逗号)我还可以绘制这些数据。
Column1,Column2,Column3,
1,4,6,
2,2,6,
3,3,8,
4,1,1,
5,4,2,
使用plt.plotfile('test0.csv', (0, 1), delimiter=',')
。
但未设法绘制分隔符为'; '
(分号+空格)的数据,如下所示。我还可以用matplotlib.pyplot
拍摄这张照片吗?
Column1; Column2; Column3;
1; 4; 6;
2; 2; 6;
3; 3; 8;
4; 1; 1;
5; 4; 2;
熊猫包裹matplotlib的绘图功能。 – cphlewis