Missing `xlim([0.5 5.5])` in the Second Subplot of Exercise 8.21 (Page 284)
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 83/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- documentation
Research direction
Start with the Exercise 8.21 code listing on page 284, specifically the second subplot containing swarmchart. Compare it with the prompt requiring both panels to use [0.5, 5.5] and the range shown in Figure 8.27. Done means the bottom panel's x-axis limits match the prompt and figure.
Written by the indexing model from the issue text.
Description
Dear Professors
While running the code for Exercise 8.21 on page 284, I noticed a small omission in the snippet used to generate Figure 8.27.
The exercise prompt explicitly states:
"Set the $x$-axis limits in both panels to
[0.5, 5.5]."
However, in the code listing on page 284 (lines 4–10), xlim([0.5 5.5]) is only applied to the top subplot (scatter), and is missing from the bottom subplot (swarmchart):
subplot(nr,nc,1)
scatter(loyalty,'family','amount_spent')
title('Scatter Plot')
xlim([0.5 5.5])
subplot(nr,nc,2)
swarmchart(loyalty,'family','amount_spent')
title('Swarm Chart')
As a result, running the snippet as written leaves the bottom panel with MATLAB's default x-axis limits (typically [0, 6]), rather than matching the [0.5, 5.5] range shown in Figure 8.27
Thanks always for the time!
- Dominant language
- MATLAB
- Stars
- 30
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from UniprJRC/DSwithMATLAB
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
UniprJRC/DSwithMATLAB#243 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
UniprJRC/DSwithMATLAB#242 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
UniprJRC/DSwithMATLAB#241 ·
-
Suggestion for the next edition
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
UniprJRC/DSwithMATLAB#238 · 2 comments ·
-
Suggestion for the next edition
Difficulty 1/5 Under an hour Newbie friendliness 72/100
UniprJRC/DSwithMATLAB#236 · 1 comment ·
All issues in UniprJRC/DSwithMATLAB
Similar issues
-
bug priority: p3 size: xs
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Ax/Atb trim the caller's GpuIds in place, so blocksize-1 solvers run on one GPU after the first anglePossibly taken @AnderBiguri claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
mathworks/MATLAB-Coding-Guidelines#7 · 3 comments ·