1.4. Corrplot example

../_images/sphx_glr_plot_corrplot_001.png
# some useful pylab imports for this notebook


# Create some random data
import string
letters = string.ascii_uppercase[0:15]
import pandas as pd
import numpy as np
df = pd.DataFrame(dict(( (k, np.random.random(10)+ord(k)-65) for k in letters)))
df = df.corr()

# if the input is not a square matrix or indices do not match
# column names, correlation is computed on the fly
from biokit.viz import corrplot
c = corrplot.Corrplot(df)


c.plot(colorbar=False, method='square', shrink=.9 ,rotation=45)

Total running time of the script: ( 0 minutes 0.599 seconds)

Gallery generated by Sphinx-Gallery