Skip to content

Bring the Tier 3 work onto main - #11

Merged
certik merged 9 commits into
mainfrom
tier3-to-main
Aug 16, 2026
Merged

certik merged 9 commits into
mainfrom
tier3-to-main

Conversation

@certik

@certik certik commented Aug 16, 2026

Copy link
Copy Markdown
Member

PR #10 merged into polish1 after polish1 had already gone into main, so the six Tier 3 commits never reached main. This is that merge, unchanged: hatching, colorbar orientation, fills, margins, mathtext (\frac, \sqrt, greek) and the 3D extras. Verified locally: flang builds, all 95 cases within tolerance.

certik added 9 commits August 16, 2026 09:04
fill_betweenx is the same band as fill_between with the axes read the
other way round, so it is the same series with a flag rather than a kind
of its own. stackplot is nothing but a run of bands, each starting where
the last one stopped. axline is the one that needs its own drawing: it
has no extent, so it takes no part in the limits and is clipped to the
axes rectangle in pixels.
The axes carried a tight flag, which was only ever the question of
whether the five percent margin was applied. A margin per axis says the
same thing and says more, so tight becomes a margin of nothing and
margins() sets whatever else is wanted. autoscale() then pins the limits
where the data has put them, which is the only way to stop an axis from
growing with what is drawn next.
The bar was three tuned constants, one of which was a width fraction
that only came out right at the default figure size; matplotlib gets the
same number from an aspect ratio, so a bar in a narrow subplot was too
thin. Taking matplotlib's four numbers instead - fraction, pad, shrink
and aspect - gives the horizontal bar for free, since the only
difference is which way the slices and the ticks run.
Matplotlib hatches by tiling a pattern behind the shape and clipping it
to the path; the backend API here clips to rectangles only, on purpose,
so the lines are cut to the shape where they are made instead. A ruled
line crosses the outline an even number of times, so the crossings sort
into pairs and each pair is one dash, which works for any polygon and
asks nothing of the four backends.
Tier 3: hatching, colorbar orientation, fills, margins, mathtext and 3D extras
@certik
certik merged commit fcec4f6 into main Aug 16, 2026
1 check passed
@certik
certik deleted the tier3-to-main branch August 16, 2026 16:33
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.

1 participant