Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ggsave code to save plots in plotting chapter #38

Open
nkandhari opened this issue May 22, 2024 · 1 comment
Open

Update ggsave code to save plots in plotting chapter #38

nkandhari opened this issue May 22, 2024 · 1 comment

Comments

@nkandhari
Copy link

nkandhari commented May 22, 2024

In the plotting chapter (https://github.com/MonashDataFluency/python-workshop-base/blob/master/workshops/docs/modules/plotting_with_ggplot.md), update the ggsave code for saving the plot. The existing code doesn't work.

Existing code: prints an error
ggsave(filename="plot1.png", plot=plt1, device='png', dpi=300, height=25, width=25)
Updated code:
ggsave(plt1, filename="plot1.png", width = 25, height = 25, dpi= 300)

@nkandhari
Copy link
Author

The same changes must be made in the half-day and the full-day workshops.

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

No branches or pull requests

1 participant