mendeleev.vis.seaborn

Functions

heatmap(elements: DataFrame, prop: str, style: str = 'whitegrid', figsize: Tuple[int] = (16, 10), cmap: str = 'RdBu_r', lw: int = 1, output: str = None, **kwargs)[source]

Plot a heatmap of the given property

Parameters:
  • elements – DataFrame with data about elements

  • prop – Name of the attribute of Element object that is available from the elements table

  • style – Seaborn style option, default=’whitegrid

  • figsize – Size of the plot, default=(16, 10)

  • cmap – Colormap to use, default=’RdBu_r’

  • lw – Seaborn heatmap linewidths argumentm default=1, see http://stanford.edu/~mwaskom/software/seaborn/generated/seaborn.heatmap.html

  • output – File name to save the plot, by default nothing is saved