From baa6e5b5bbbf7e25beeeb1d3f2cae5dd2cf91dd8 Mon Sep 17 00:00:00 2001 From: Andrew Gait Date: Tue, 21 Apr 2026 16:37:57 +0100 Subject: [PATCH] Add blank line after figure to fix layout --- episodes/07-pandas_essential.md | 1 + 1 file changed, 1 insertion(+) diff --git a/episodes/07-pandas_essential.md b/episodes/07-pandas_essential.md index 6da4492..f51b7b0 100644 --- a/episodes/07-pandas_essential.md +++ b/episodes/07-pandas_essential.md @@ -190,6 +190,7 @@ plt.xticks(rotation=90) ``` ![](fig/sweden-pandas-fig1.png){alt="Line plot of increase in Sweden's GDP from 1952 to 2002, with no axis labels, and awkward x-axis tick labels."} + Note that we've had to rotate the xtick labels by 90 degrees, because they do not fit neatly under the x-axis. Later we will clean these up properly. Note that, in the case above, we passed a single column of data to the `plot` method - which it automatically transposed in order to make sense of the plot request (because this method usually works on rows of data). If you want to plot more than one column of data you will need to explicitly transpose the DataFrame yourself.