Skip to content

long_run_growth: styling and label fixes - #328

Merged
mmcky merged 2 commits into
mainfrom
i291
Dec 20, 2023
Merged

mmcky merged 2 commits into
mainfrom
i291

Conversation

@kp992

@kp992 kp992 commented Dec 17, 2023

Copy link
Copy Markdown
Contributor

Fixes #291

@netlify

netlify Bot commented Dec 17, 2023 •

Copy link
Copy Markdown

✅ Deploy Preview for taupe-gaufre-c4e660 ready!

Name Link
🔨 Latest commit 267f368
🔍 Latest deploy log https://app.netlify.com/sites/taupe-gaufre-c4e660/deploys/65824738fc52b0000861a0e0
😎 Deploy Preview https://deploy-preview-328--taupe-gaufre-c4e660.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions

github-actions Bot commented Dec 17, 2023 •

Copy link
Copy Markdown

@mmcky
mmcky requested a review from HumphreyYang December 18, 2023 05:29
@mmcky

mmcky commented Dec 18, 2023

Copy link
Copy Markdown
Contributor

thanks @kp992 I will ask @HumphreyYang to review as he recently edited this lecture.

@HumphreyYang HumphreyYang left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks @kp992! It looks great. Just two very small comments. Please let me know your thoughts.

thanks @kp992 I will ask @HumphreyYang to review as he recently edited this lecture.

(I think I edited the inflation lecture instead of long_run_growth) : )

Comment thread lectures/long_run_growth.md Outdated
@@ -518,19 +504,17 @@ BEM = ['GBR', 'IND', 'AUS', 'NZL', 'CAN', 'ZAF']
gdp['BEM'] = gdp[BEM].loc[start_year-1:end_year].interpolate(method='index').sum(axis=1) # Interpolate incomplete time-series

@HumphreyYang HumphreyYang Dec 18, 2023 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this line is also a bit too long. I suggest we can cut it to this:

Suggested change
gdp['BEM'] = gdp[BEM].loc[start_year-1:end_year].interpolate(method='index').sum(axis=1) # Interpolate incomplete time-series
# Interpolate incomplete time-series
gdp['BEM'] = gdp[BEM].loc[start_year-1:end_year].interpolate(method='index').sum(axis=1)

Comment thread lectures/long_run_growth.md Outdated

```{code-cell} ipython3
gdp['BEM'].plot() # The first year is np.nan due to interpolation
gdp['BEM'].plot(ylabel="International $'s") # The first year is np.nan due to interpolation

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line prints out the label
Screenshot

We can suppress printing using

Suggested change
gdp['BEM'].plot(ylabel="International $'s") # The first year is np.nan due to interpolation
_ = gdp['BEM'].plot(ylabel="International $'s") # The first year is np.nan due to interpolation

or

Suggested change
gdp['BEM'].plot(ylabel="International $'s") # The first year is np.nan due to interpolation
gdp['BEM'].plot(ylabel="International $'s") # The first year is np.nan due to interpolation
plt.show()

@mmcky mmcky left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @kp992 and @HumphreyYang I think these are good changes.

@mmcky

mmcky commented Dec 20, 2023

Copy link
Copy Markdown
Contributor

thanks @kp992 and @HumphreyYang.

This PR just adjusts the spacing of the code to improve readability. I don't see any changes to labels -- is that right?

@HumphreyYang

Copy link
Copy Markdown
Member

This PR just adjusts the spacing of the code to improve readability. I don't see any changes to labels -- is that right?

I think there is only one change in the label at L510.

@mmcky

mmcky commented Dec 20, 2023

Copy link
Copy Markdown
Contributor

This PR just adjusts the spacing of the code to improve readability. I don't see any changes to labels -- is that right?

I think there is only one change in the label at L510.

Thanks @HumphreyYang nice find. 👍

@mmcky

mmcky commented Dec 20, 2023

Copy link
Copy Markdown
Contributor

@thomassargent30 I am merging this as mainly improving the formatting in the md file. There is one visual change adding one label to a graph on L510

@mmcky
mmcky merged commit 8923f9e into main Dec 20, 2023
@mmcky
mmcky deleted the i291 branch December 20, 2023 23:37
@kp992

kp992 commented Dec 21, 2023

Copy link
Copy Markdown
Contributor Author

Thanks @mmcky and @HumphreyYang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Labels for figures in long_run_growth

3 participants