I am trying to plot a heatmap in matplotlib and use this as a basis: Moving x-axis to the top of a plot in matplotlib
The problem is that I have just three columns but 70 rows but the figure always has 70 rows and 70 columns when I use the example. Does anybody know how to limit the amount of columns, that they fit my data?