Complete NHL heatmap case study - #17
Draft
alexanderthclark wants to merge 9 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
C0blue with points percentage also encoded through opacity.Poetry-Figure-Dev.ipynband exports their concise modules with the notebook's existingsavepy(...)pattern.\pyfilecommand for the book listings;mycommands.styis unchanged.Why
The Poetry section promised a custom artist-based heatmap but ended as a work in progress with embedded, unsourced data. The first completion pass also replaced three intentional parts of the original design—variable bubble sizes, image labels, and upright vertical lettering—with fixed circles, text labels, and a rotated phrase. This follow-up restores that visual grammar while keeping the new reproducible data and narrative framing.
The selected teams create a balanced story around the lockout: Detroit is the sustained benchmark; Tampa Bay rises and falls; Nashville follows a steadier path; and Washington, Pittsburgh, and Chicago show three different rebuilds. The gold edges connect regular-season performance to the playoff outcome without changing the underlying size and opacity encodings.
The figure code now follows the book's established structure: the notebook contains the complete runnable workflow, while the exported Python modules omit shared imports, layout plumbing, and save commands after the standard
#truncatemarker.Impact
Readers now get a complete before-and-after example using real NHL data. Bubble radius and opacity reinforce performance, gold edges identify championships, team marks make the rows visually distinctive, and the lockout annotation reads vertically without turning its letters sideways. The restored descriptive title identifies the subject directly, leaving the interpretive claim to emerge from the figure and surrounding prose. The prose also distinguishes mechanical image normalization from the perceptual adjustments a storyteller may still want to make.
Validation
savepyexports before#truncate.pathlib/__file__root discovery, and use direct paths consistent with the repository.tex/mycommands.styis identical tomain.