corrplot function in Python

We’ve implemented a corrplot function in Python, which is available in BioKit package

– github https://github.com/biokit/biokit
– pypi https://pypi.python.org/pypi/biokit

For illustration, let us create some random data sets:

The correlation matrix is stored in the Pandas dataframe called df. It is now straightforward to create some nice plots:

corrplot

See this notebook for more examples.

This entry was posted in Python and tagged , , , . Bookmark the permalink.

4 Responses to corrplot function in Python

  1. Dear Thomas,
    I am a researcher working in Oceanography. I find the corrplot very usefull, May I know if there is a way to mark the significance like in the case of R. corrplot?

  2. Anonymous says:

    how could I save the figure into a file such as png or pdf?

    • From matplotlib, use the savefig command:

      from pylab import savefig
      savefig("example.png")
      savefig("example.pdf")

      You can set the resolution in dpi:

      savefig("example.png", dpi=200)

Leave a Reply

Your email address will not be published.