Skip to content

Close the Tier C to E matplotlib gaps - #13

Merged
certik merged 18 commits into
mainfrom
tierc
Aug 16, 2026
Merged

certik merged 18 commits into
mainfrom
tierc

Conversation

@certik

@certik certik commented Aug 16, 2026 •

Copy link
Copy Markdown
Member

Closes the Tier C to E matplotlib gaps, then makes a start on Tier F.

Tier C — pie wedge explode and autopct, horizontal/notched boxplots with
the mean marked, horizontal violins with their inner marks, legend(loc='best'),
subplot_mosaic and constrained_layout.

Tier D — curved annotation arrows and rounded bbox, minor tick labels on a
log axis shorter than a decade.

Tier E — triplot, tripcolor, tricontour, tricontourf,
plot_trisurf, bar3d, quiver3d and 3D contour.

Two fidelity bugs turned up along the way and are fixed:

  • contour levels now follow MaxNLocator's 1/2/2.5/5/10 staircase rounded up,
    where we used to round down (0.25 vs 0.2 on the tri-contour data);
  • a contour set autoscales tight, with no 5 % margin.

Tier F — src/fplot.f90 is down from 12151 to 10621 lines: the shared
types and figure state moved to src/fplot_state.f90 and the drawing
primitives to src/fplot_artist.f90. Splitting the render pass out as well
needs the API/render cycle broken first (the renderer calls tight_layout,
compute_limits and the tick helpers, while the API calls savefig), so it is
left for a later change.

All five comparison harnesses are green: PNG 124 cases at 1.50/255, PDF 123 at
2.05, EPS 124 at 3.57, GIF 20 frames at 0.60, SVG structure matching.

@certik
certik merged commit 9d88c45 into main Aug 16, 2026
1 check passed
@certik
certik deleted the tierc branch August 16, 2026 23:29
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