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

Inconsistent commas in the code (Chapter 2, page 22) #63

Closed
labdmitriy opened this issue Jul 12, 2022 · 1 comment · Fixed by #68
Closed

Inconsistent commas in the code (Chapter 2, page 22) #63

labdmitriy opened this issue Jul 12, 2022 · 1 comment · Fixed by #68

Comments

@labdmitriy
Copy link
Contributor

Hi @rougier,

Еhere is a slight inconsistency in the code from the book - there is no comma after zorder argument, but after linestyle argument there is a comma (technically the latter case is not an error, but usually trailing comma is used with different code formatting):

plt.plot(P[:,0], P[:,1], clip_on=False, zorder=-10
         color="k", linewidth=1.0, linestyle="--", )

Perhaps the following code was meant:

plt.plot(P[:,0], P[:,1], clip_on=False, zorder=-10,
         color="k", linewidth=1.0, linestyle="--")

Thank you.

@labdmitriy labdmitriy changed the title Inconsistent commas in the code (Chapter 2, Page 22) Inconsistent commas in the code (Chapter 2, page 22) Jul 12, 2022
@rougier
Copy link
Owner

rougier commented Jul 13, 2022

Nice catch, thanks. PR welcome.

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 a pull request may close this issue.

2 participants