Giter Site home page Giter Site logo

Comments (6)

elcinelif avatar elcinelif commented on June 3, 2024 1

Text indeed doesn't overlap but labels do overlap with the data points which wasn't the case previously... Your recommendation works nicely, thanks a lot!

Do you by any chance know why the exact same code creates different outputs with different versions of adjustText?

from adjusttext.

Phlya avatar Phlya commented on June 3, 2024 1

Great to hear!

Well, the whole algorithm of moving the texts around is more complicated than one might think with a lot of small things that can make a visible impact. I believe now the code tries to respect the text alignment, and if possible doesn't move it at all. While before it actually changed the alignment, and by chance it worked better for your use case. Overall there is no promise that different versions have the same output (hopefully on average the results are better with less fiddling with parameters in newer versions).

from adjusttext.

Phlya avatar Phlya commented on June 3, 2024

What is the problem exactly - the result is suboptimal, it doesn't work at all?.. Can you share the results, and ideally some example data?

from adjusttext.

elcinelif avatar elcinelif commented on June 3, 2024

Thanks for your quick response! Here are the results and my data sheet:

=> result that I obtained on my old computer with the previous version of adjust text

=>result I obtain
now with the version 1.1 on my new computer with the exact same script

from adjusttext.

Phlya avatar Phlya commented on June 3, 2024

OK... It looks a bit different, but I don't see any issues, texts don't overlap... What is it in particular that you don't like?

from adjusttext.

Phlya avatar Phlya commented on June 3, 2024

texts = [plt.text(x[i], y[i], z[i], ha='left', va='bottom', fontsize=20) for i in range(len(x))]

Changing alignment of texts makes the result almost identical to the old one, if that's what you want...

from adjusttext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.