Giter Club home page Giter Club logo

Comments (5)

Phlya avatar Phlya commented on May 21, 2024

You were right to expect the opposite effect! I've never encountered this,
could you create a minimal reproducible example? I'll then try it later.

10 Авг 2016 г. 13:06 пользователь "Manuel" [email protected]
написал:

for point, label in zip(embed, labs):
notes.append(plt.text(point[0], point[1], label, bbox={'pad':0, 'alpha':0}, size=5))
adjust_text(notes, arrowprops=dict(arrowstyle="->", color='r'))

[image: plot]
https://cloud.githubusercontent.com/assets/1309922/17552941/5a1f140a-5f03-11e6-9124-ad704302547a.png

i expected the exact opposite result!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#4, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACwsusYof8vqH3cj-2O4CKOay3UOUpn_ks5qeb6pgaJpZM4JhEse
.

from adjusttext.

manuel-delverme avatar manuel-delverme commented on May 21, 2024

https://gist.github.com/manuel-delverme/0a4610a981f0f92c1685a74a4fce1feb

figure_1

from adjusttext.

Phlya avatar Phlya commented on May 21, 2024

Ok, thanks! I'm away from a computer now, but could you try running the
plt.scatter before adjust_text? I think now your axes aren't set up when
you do it, so maybe that's the problem.

10 Авг 2016 г. 16:25 пользователь "Manuel" [email protected]
написал:

https://gist.github.com/manuel-delverme/0a4610a981f0f92c1685a74a4fce1feb

[image: figure_1]
https://cloud.githubusercontent.com/assets/1309922/17559669/62a78f82-5f1f-11e6-9ffd-13d8cc0a9f3a.png


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#4 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACwsuqWx4ZsBMrsfiqIn6Gc5IC4TkhLgks5qee1XgaJpZM4JhEse
.

from adjusttext.

Phlya avatar Phlya commented on May 21, 2024

Yes, I just checked, that's definitely the issue. If you simply do that you get this:
no_opposite_effect

from adjusttext.

Phlya avatar Phlya commented on May 21, 2024

And to make it nicer try reducing force_text, then the super long arrows become much shorter - for example with force_text=0.25:
no_opposite_effect_ft0 25

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.