-
Notifications
You must be signed in to change notification settings - Fork 89
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
"New engine" changed behavior #155
Comments
Thank you for the feedback. From a quick look, I think this is a combination of things... First, there is the new "pull-back" step, which forces the labels to be much closer to the points that they correspond to, and helps avoid cases when they fly away like crazy. You can set it to 0 with I agree re the examples being the best (and only) result quality tests we (can) have, so it's great that you did this comparison, thank you again! If you want to look into it, you could try to find different (default?) arguments that you think would work better, and hopefully there is no need to go deeper than that. Please let me know what you think. |
Thanks for quick reply. Being a (planned) major version change, I suppose backward compatibility is not mandatory, and the ultimate goal for any version is rather to have perfect render out of the box (mostly default parameters). "Perfect" is likely hard to reach, so a major decision is how to balance opinions. :-)
What example did you focus on when you made the new engine? Any new tests I should keep in mind? Not sure if there are "old users" to cater for or if the package is mostly used for one-time graphs. And of course, there's no mandatory reason to upgrade for anyone happy with v0.8 or so. But the set of examples is an indication that keeping the "old style" is useful. Also, seeing that plotnine seems to use alignText internally, they would probably be happy for heads up before major changes.
If "new style" is objectively better, that's a win for everyone. My worry is that I don't know how deterministic the layout is. It would be sad if I fine-tune defaults on my system or on the documentation server, but this is not what "real users" get. I haven't looked at the algorithm yet, so I may not be the best for the task, but I think it's good to set some common expectations:
I agree may sometimes be omitted, but I think the criteria for "needed" is not length, but ambiguity.
That's not a bad idea, if it can be properly balanced. Clearance should be top prio, I think.
Do you have any additional code for debugging? I did have some thoughts about the changed behavior: The return value from adjust_text has been removed. I guess it was by design, any good reason? Maybe provide some other way to get debugging/performance values out, if you didn't like the return value. I saw some reasearch papers mentioned. Do you keep track of any other implementations, like the ggrepel? |
I think I have fixed some bugs introduced in the "new engine", and it should work better now! |
FYI looking at the examples, basically default parameters work well almost everywhere. I sometimes glance at the ggrepel repo, but don't really keep track of papers... Let me know if you have any more important questions (feel free to reopen!), and sorry it took a while to fix things :) Thanks for a detailed report and assessment. |
After the b98938 "Implement new engine!" commit, the examples are subjectively worse than before.
https://github.com/Phlya/adjustText/blob/b98938fcb06e9c27772c50074f601a45626e8d2a/docs/source/Examples.ipynb
Not sure if the commited examples are generated from the exact code, but it's similar to the "latest" when I tested locally and the latest RTD doc.
https://adjusttext.readthedocs.io/en/latest/Examples.html
I consider the collected examples the best testcases we have, so my question is if this is a known degrade, if further investigation is needed or if the examples should be reworked to fit the new engine.
The 32f0335 from ver 8.0 looks better:
https://github.com/Phlya/adjustText/blob/32f0335375c0e0586a5ee49ee458e42ffc2320fa/docs/source/Examples.ipynb
My subjective observations:
If you confirm the intention, I may be able to help sorting it out.
The text was updated successfully, but these errors were encountered: