当我print
时,我的数据如下所示。
print data
A B
2014-04-04 0.000000 0.000000
2014-06-11 0.013416 -0.049643
2014-12-22 0.175361 -0.114184
2014-03-25 -0.160409 0.208127
2014-11-03 0.168943 -0.157301
2014-06-16 -0.130902 0.109455
pd.scatter_matrix(data, diagonal='kde', figsize=(10, 10))
其中pd = import pandas as pd
没有抛出任何错误,但我没有在任何地方看到图表(?)。
matplotlib.pyplot工作时,数据是“可图表的”。只有在我拨打matplotlib.pyplot.plt.show()
时才会显示Matplotlib。
我假设情节没有显示,但那我怎么“显示”呢?
编辑: 我在this示例工作。
感谢
答案 0 :(得分:10)
plt.show()
的地方调用{p> import matplotlib.pyplot as plt