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

Fix minor typos #149

Merged
merged 3 commits into from
Feb 6, 2024
Merged

Fix minor typos #149

merged 3 commits into from
Feb 6, 2024

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Feb 6, 2024

Add spaces where possible. Fix sine* plots examples to match code and text. Fix Performance tip which didn't run.

Only a couple don't fit, so try to combine things that are related in
those cases.
@QuLogic QuLogic changed the title Minor typos Fix minor typos Feb 6, 2024
@@ -83,7 +83,7 @@ \section*{\LARGE \rmfamily
%
\fbox{2} \textbf{Prepare}
\begin{lstlisting}
X = np.linspace(0, 4*np.pi, 1000)
X = np.linspace(0.1, 10*np.pi, 1000)
Copy link
Member

Choose a reason for hiding this comment

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

I know you just adapted to the code. But why don't we start at 0? That'd be more intuitive.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it leaves out 0 for the log scale one, but we can just create a new X/Y if we want 0 here.

- Use `C1` instead of `orange` to match other plots.
- Remove extra plot in `sine-logscale.pdf`, which causes a bit of
  artifacting around the line.
- Ensure text matches what is actually plotted for `markevery` settings;
  note I divided by 10 so that the text would fit in the block.

Fixes matplotlib#133
I'm not sure what the tip in Performance section is supposed to do, but
the slow part plots nothing, and the fast part doesn't run.
@timhoffm timhoffm merged commit fc020b3 into matplotlib:master Feb 6, 2024
3 checks passed
@QuLogic QuLogic deleted the minor-typos branch February 6, 2024 22:59
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.

2 participants