seaborn—Thermodynamic Chart

seaborn—Thermodynamic Chart

You can use the seaborn library to draw thermodynamic charts.

import seaborn as sns

import pandas as pd

import numpy as np

import matplotlib.pyplot as plt

# Generate data sets

data = np.random.random((6,6))


features = [“prop1″,”prop2″,”prop3″,”prop4″,”prop5”, “prop6”]

data = pd.DataFrame(data, index = features, columns=features)


# Draw a thermodynamic chart

heatmap_plot = sns.heatmap(data, center=0, cmap=’gist_rainbow’)