Skip to content

Draw the figure from a module of its own - #14

Merged
certik merged 1 commit into
mainfrom
render-split
Aug 17, 2026
Merged

certik merged 1 commit into
mainfrom
render-split

Conversation

@certik

@certik certik commented Aug 16, 2026

Copy link
Copy Markdown
Member

Splits the render pass out of src/fplot.f90 into src/fplot_draw.f90.

The cycle that blocked this before was small once measured: the render side only reached back into the API through clf (via ensure_fig) and tight_layout, so those move too and fplot re-exports them. The closure of the renderers is 115 procedures — layout, limits, tick placement and labelling, and one renderer per plot type — and pulls in no type-bound wrapper and no generic-interface procedure, so the API surface is untouched.

src/fplot.f90 goes from 10621 to 6130 lines; fplot_draw.f90 is 4500. No behaviour change: PNG comparison is 124 cases at 1.50/255, exactly as before.

@certik
certik merged commit 148ea70 into main Aug 17, 2026
1 check passed
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