I'm searching for a way to set a title to Pandas scatter matrix
:
from pandas.tools.plotting import scatter_matrix
scatter_matrix(data, alpha=0.5,diagonal='kde')
I tried plt.title('scatter-matrix')
but it creates a new figure.
Any help is appreciated.
I think you need suptitle
:
import matplotlib.pyplot as plt
from pandas.tools.plotting import scatter_matrix
scatter_matrix(df, alpha=0.5,diagonal='kde')
plt.suptitle('scatter-matrix')
plt.show()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With