I have 2 data tables with the dimensions 4x25
. Each table is from a different point in time, but has exactly the same meta data, in essence the same column and row headers.
Given the large number of columns, I thought it best to represent this using a heatmap
using the seaborn
library for Python
. However, I need to include both tables in the same plot. I am able to create a single heatmap representing a single data table as so.
df = pd.DataFrame(raw_data)
ax = sns.heatmap(df)
ax.set(yticklabels=labels)
However, I'm not sure how to combine two data tables into the same heatmap. The only way I can think of is to just create a new DataFrame
of dimension 4x50
and then fit both tables into that one and plot that using the heatmap. But then, I need help with the following issues:
- I'm not sure how I'd draw a line down the middle of the heatmap to differentiate the data from the 2 tables.
- Another solution is to apply 2 different coloring schemes for the 2 sets of data within the same heatmap instead of simply just drawing a line down the middle.