loda-lang / loda-rust

Web editor for the LODA language. Also includes my experiments with Abstraction and Reasoning Corpus ARC.
https://loda-lang.org/
Apache License 2.0
24 stars 2 forks source link

Logarithmic y-axis in plot #12

Closed neoneye closed 2 years ago

neoneye commented 2 years ago

Currently (25 dec 2021), the y-axis is linear. However many sequences grows exponential, so their beauty cannot be seen.

With a logarithmic y-axis, the exponential sequences can be visualized.

Question: What does the UI look like in other charts, that deal with similar data?

Question: Should this be a toggle button between linear and logarithmic?

Question: Should there be an auto mode, so the best visualization is automatically picked?

Question: Should the toggle button, be placed inside the Advanced mode UI?

ckrause commented 2 years ago

OEIS has pinplots and scatter plots. It seems like they have some kind of auto detection for when to use log scale, see e.g. https://oeis.org/A000055/graph

I'm not sure how difficult and reliable such an auto detection would be. A toggle would always work I guess.

neoneye commented 2 years ago

I think a proof of concept with auto detection is needed. Any ideas how to this can work?

neoneye commented 2 years ago

I have implemented it.

These looks good in logarithmic mode: https://loda-lang.org/edit/?oeis=276086 https://loda-lang.org/edit/?oeis=7318