Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plotting a dataframe (pandas) in pycharm, not displaying

My data looks like the following when I print it.

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))

where pd = import pandas as pd

There are no errors thrown but i do not see the chart anywhere(?).

The data is "chartable" as matplotlib.pyplot works. Matplotlib is only displayed when I call matplotlib.pyplot.plt.show().

I am assuming the plot is not being shown, but then how do i "show" it?

Edit: I am working from this example.

thanks

like image 427
jason m Avatar asked Mar 13 '15 21:03

jason m


1 Answers

plt.show() must be called where import matplotlib.pyplot as plt

like image 60
jason m Avatar answered Oct 24 '22 21:10

jason m