Skip to content

Prototype of automatic axis labels.#56

Draft
olavolav wants to merge 1 commit intoloony-bean:masterfrom
olavolav:os-optimal_labels
Draft

Prototype of automatic axis labels.#56
olavolav wants to merge 1 commit intoloony-bean:masterfrom
olavolav:os-optimal_labels

Conversation

@olavolav
Copy link

@olavolav olavolav commented Jan 4, 2025

Hi there, love your plotting library!

I myself am the author of the Python plotting library uniplot, and as I'm working on extracting the code to generate optimally readable axis labels into a Rust library, I thought it might be useful for your project, too.

This is an WIP implementation of optimally readable axis labels using the axis_labels_rs library.

Do you think this could be valuable? If so, we could team up to get this into a working state.

This is an WIP implementation using the `axis_labels_rs` library.
@olavolav
Copy link
Author

olavolav commented Jan 4, 2025

As a demo, I have edited the label example. It now returns:

My step count over 3 months:
⡁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⠈⠀⠁⡁
⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠄
⠂⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠂ 20,000
⡁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠤⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠔⠒⡁
⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠤⢄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠔⠒⢄⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠔⠁⠈⢢⠀⠀⠀⠀⠀⠀⠀⠀⠀⡰⠁⠀⠈⢢⠀⠀⠀⠀⠀⠀⠀⠀⢠⠃⠀⠀⠄
⠂⠀⢀⠤⢄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠔⠑⢢⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠔⠁⠈⢢⠀⠀⠀⠀⠀⠀⠀⠀⠀⡰⠁⠀⠀⢣⠀⠀⠀⠀⠀⠀⠀⠀⢠⠃⠀⠀⠀⢣⠀⠀⠀⠀⠀⠀⠀⢀⠎⠀⠀⠀⠀⢣⠀⠀⠀⠀⠀⠀⠀⡰⠁⠀⠀⠀⠀⢇⠀⠀⠀⠀⠀⠀⢠⠃⠀⠀⠀⠂
⡁⡔⠁⠀⠀⢣⠀⠀⠀⠀⠀⠀⠀⠀⢠⠃⠀⠀⠀⢣⠀⠀⠀⠀⠀⠀⠀⢀⠎⠀⠀⠀⠀⢣⠀⠀⠀⠀⠀⠀⠀⡰⠁⠀⠀⠀⠀⢣⠀⠀⠀⠀⠀⠀⢠⠃⠀⠀⠀⠀⠀⢣⠀⠀⠀⠀⠀⠀⡜⠀⠀⠀⠀⠀⠈⢆⠀⠀⠀⠀⠀⢰⠁⠀⠀⠀⠀⠀⠈⢆⠀⠀⠀⠀⢀⠎⠀⠀⠀⠀⡁
⡼⠀⠀⠀⠀⠀⢣⠀⠀⠀⠀⠀⠀⢠⠃⠀⠀⠀⠀⠀⢣⠀⠀⠀⠀⠀⠀⡜⠀⠀⠀⠀⠀⠀⢣⠀⠀⠀⠀⠀⡰⠁⠀⠀⠀⠀⠀⠀⢇⠀⠀⠀⠀⢀⠎⠀⠀⠀⠀⠀⠀⠈⢆⠀⠀⠀⠀⡜⠀⠀⠀⠀⠀⠀⠀⠈⢆⠀⠀⠀⢠⠃⠀⠀⠀⠀⠀⠀⠀⠈⢆⠀⠀⢀⠎⠀⠀⠀⠀⠀⠄
⠃⠀⠀⠀⠀⠀⠀⢣⠀⠀⠀⠀⢀⠇⠀⠀⠀⠀⠀⠀⠀⢇⠀⠀⠀⠀⡜⠀⠀⠀⠀⠀⠀⠀⠈⢆⠀⠀⠀⢠⠃⠀⠀⠀⠀⠀⠀⠀⠈⢢⠀⠀⢀⠎⠀⠀⠀⠀⠀⠀⠀⠀⠈⠢⡀⠀⡜⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠢⣀⡰⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⠒⠊⠀⠀⠀⠀⠀⠀⠂
⡁⠀⠀⠀⠀⠀⠀⠀⢣⠀⠀⢀⠎⠀⠀⠀⠀⠀⠀⠀⠀⠀⠣⡀⢀⠜⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⢄⠴⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⠒⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡁
⠄⠀⠀⠀⠀⠀⠀⠀⠀⠑⠒⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠄
⠂⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠂
⠅⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠠⠀⠄⠁ 0
2023-06-01

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