Skip to content

Conversation

@lucasb-eyer
Copy link

line-style was previously ignored for line collections, this fixes it. Note that I did not add support for offset in line-style, which has not existed in the first place, and I have no need for it.

There's a corresponding commit/PR in mpld3 coming.

This was done together with gpt-5.1-codex (but I reviewed and edited a lot), here is what it has to say:

Handle collection dasharrays in exporter

  • derive dash arrays from collection linestyles/dashes
  • carry dasharrays through export and render_path_collection so hlines/vlines/grid keep their patterns

And here's a bunch of hlines and vlines showing it works (including on log-axes but only with my other PRs)
image

lucasb-eyer added a commit to lucasb-eyer/mpld3 that referenced this pull request Dec 1, 2025
This goes together with mpld3/mplexporter#71
it's the mpld3 side of the change.

Again, done together with gpt-5.1-codex but with full review/polish from me,
thoug I think this one's trivial given the other one.

See the other PR for example screenshot of it working.

I would re-generate the compiled js files once you approve.

Also, how shall we do the submodule update commit? Should I include it
in this PR after the mplexplorer got in?

(I find the submodule to be an annoying maintenance burden btw)
lucasb-eyer added a commit to lucasb-eyer/mpld3 that referenced this pull request Dec 1, 2025
This goes together with mpld3/mplexporter#71
it's the mpld3 side of the change.

Again, done together with gpt-5.1-codex but with full review/polish from me,
thoug I think this one's trivial given the other one.

See the other PR for example screenshot of it working.

I would re-generate the compiled js files once you approve.

Also, how shall we do the submodule update commit? Should I include it
in this PR after the mplexplorer got in?

(I find the submodule to be an annoying maintenance burden btw)
@lucasb-eyer lucasb-eyer force-pushed the lb-dash-linecollections branch from d8fc3eb to f2f8898 Compare December 1, 2025 11:41
line-style was previously ignored for line collections, this fixes it.
Note that I did not add support for offset in line-style, which has not
existed in the first place, and I have no need for it.

There's a corresponding commit/PR in mpld3 coming.

This was done together with gpt-5.1-codex (but I reviewed and edited
a lot), here is what it has to say:

Handle collection dasharrays in exporter

- derive dash arrays from collection linestyles/dashes
- carry dasharrays through export and render_path_collection so hlines/vlines/grid keep their patterns
@lucasb-eyer lucasb-eyer force-pushed the lb-dash-linecollections branch from f2f8898 to bda8b61 Compare December 1, 2025 11:49
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