Label Clipping and Overlap in Bubble Charts (Figures 8.18 and 8.19, Pages 274–275)

Open Beginner friendly
#238 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
matlab

Research direction

Start from the MATLAB snippet that reproduces Figures 8.18 and 8.19 for Exercises 8.15 and 8.16 (pages 274–275), the code that calls text at (X.PassRate, X.EnrollmentRate). Run it to see the clipping and overlaps, then widen the horizontal limits as the report suggests and offset the colliding labels. Done when "Valle d'Aosta" is fully inside the axes and the paired labels no longer overlap.

Written by the indexing model from the issue text.

Description

Suggestion for the next edition

Dear Professors,

While reproducing Figures 8.18 and 8.19 for Exercises 8.15 and 8.16 (pages 274–275), I noticed a small visual issue with the regional text labels

  1. Label Clipping (Figure 8.19, page 275): On the far right of the plot, the label for "Valle d'Aosta" is cut off by the right axis border (Valle d'Aosta)
  2. Label Overlap (Figures 8.18 & 8.19): Plotting the text labels directly at (X.PassRate, X.EnrollmentRate) causes several labels to overlap (e.g., Basilicata/Abruzzo and Calabria/Lazio)
image

(My suggestion) lightly expanding the horizontal axis limits (e.g., adding xlim([54 83]) or xlim([54 84])) in the snippet for Figure 8.19 would prevent "Valle d'Aosta" from being clipped against the right border

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from UniprJRC/DSwithMATLAB

All issues in UniprJRC/DSwithMATLAB

Similar issues

More MATLAB issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.