implot icon indicating copy to clipboard operation
implot copied to clipboard

Question: How to avoid tick overlap?

Open 0lru opened this issue 4 years ago • 4 comments

Hi. Love the library. My biggest problem while using it is the tick spacing: image

I think the tick placing/spacing should not change when the plot- is at a different size (same data): image

0lru avatar Jul 14 '21 12:07 0lru

Thanks for the feedback. I just made a few changes to the algorithm in https://github.com/epezent/implot/commit/2dc2a4cfd5e3f0419b1f864cdaedba94ec8ef3a5. Can you give the latest master a try and let me know if this improves your experience.

epezent avatar Jul 16 '21 03:07 epezent

definitely better: image

0lru avatar Jul 16 '21 05:07 0lru

Hm. This happens with -very- large numbers: image

0lru avatar Jul 16 '21 06:07 0lru

Good to know. I think we can solve this case with a second stage of pruning. Shouldn't be to hard to implement.

epezent avatar Jul 16 '21 06:07 epezent