Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix arrange for multiple (>2 columns) for some cases #68

Merged
merged 7 commits into from
Jun 17, 2024

Conversation

Vindaar
Copy link
Member

@Vindaar Vindaar commented Jun 13, 2024

The old sorting logic was not only a bit hard to follow, but also had a bug that could trigger when sorting for more than 2 columns.

The new logic is still not great, but that is unfortunately owed to the fact that the runtime type info of the Column datatype makes it hard to clean up much more (outside of not relying on algorithm/sort and writing a fully custom
sorting implementation that works directly on a DF).

This fixes ggplotnim issue:
Vindaar/ggplotnim#180

This cleans up the sorting logic somewhat to make it a bit easier to
follow, too.

Mainly it fixes the sorting bug that caused:
Vindaar/ggplotnim#180
(Devel as of today at least, wasn't working with a devel from a bit
more than a week ago, which however still worked with the previous
code, but that is still broken on Nim 2.0.4)
@Vindaar Vindaar merged commit fe7a6dd into master Jun 17, 2024
9 checks passed
Vindaar added a commit to Vindaar/ggplotnim that referenced this pull request Sep 5, 2024
The facet plot changed due to

SciNim/Datamancer#68

Previously it was missing some data.
Vindaar added a commit to Vindaar/ggplotnim that referenced this pull request Sep 5, 2024
The facet plot changed due to

SciNim/Datamancer#68

Previously it was missing some data.
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