Relative Content

Tag Archive for pythonmatplotlibseabornmatplotlib-gridspec

GridSpec overwrites xlabels with sharex

I want a specific subplot layout and found GridSpec to have this possibility. Here, the upper chart is a bar plot of the counts per date, the left is a bar plot of the counts per variable (over dates) and the main plot is a seaborn heatmap from a pandas dataframe. The index in the dataframe represents the name of the variables and the columns are datetimes. I would like to only have the axes (y and x) at the main plot. X should be the years, and Y should be the variables. However, somehow there is a messup with the ticks. I provide a example below.