Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import seaborn as sns
- import pandas as pd
- import matplotlib.pyplot as plt
- data = {
- 'A': [1, 2, 3],
- 'B': [4, 5, 6],
- 'C': [7, 8, 9]
- }
- df = pd.DataFrame(data, index=['X', 'Y', 'Z'])
- plt.figure(figsize=(10, 8))
- sns.heatmap(df, annot=True, cmap='coolwarm', linewidths=.5)
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement