Skip to content

Commit 61e8637

Browse files
authored
Merge pull request #90 from UoMResearchIT/83-fix-figure-and-text-layout-for-pandas-sweden-gdp-plot
Add blank line after figure to fix layout
2 parents 6f16d3b + baa6e5b commit 61e8637

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

episodes/07-pandas_essential.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ plt.xticks(rotation=90)
190190
```
191191

192192
![](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."}
193+
193194
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.
194195

195196
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.

0 commit comments

Comments
 (0)