import pandas as pd |
import seaborn as sns |
import matplotlib.pyplot as plt |
from matplotlib import rcParams |
|
|
NaSH = [5.5, 2.7, 6.9, 8.3, 4.1, 6.7, 6.5, 7.0] |
H2O = [2.36, 1.8, 0.68, 2.92, 1.24, 0.77, 1.36, 0.42] |
sulfur = [2.1, 3.3, 2.7, 0.9, 1.5, 2.7, 2.0, 1.3] |
toluene = [1.1, 2.3, 3.5, 5.9, 4.7, 3.3, 2.2, 1.1] |
result = [67, 31, 68, 48, 66, 70, 78, 89] |
|
|
df = pd.DataFrame({“NaSH”:NaSH, |
|
“H2O”:H2O, |
|
“sulfur”:sulfur, |
|
“toluene”:toluene, |
|
“result”:result, |
|
}) |
|
|
sns.heatmap(df.corr(), cmap=“magma”, annot=True, fmt=“1.1f”) |