Coder Social home page Coder Social logo

Comments (12)

Phlya avatar Phlya commented on August 19, 2024

Hi again, this is not a bug, it's currently not intended to work with annotation objects, but would be great to make this possible. I don't have time to work on this now, but would be happy to consider a PR for this.

from adjusttext.

alphapapa avatar alphapapa commented on August 19, 2024

Okay, thanks. I probably don't have time to work on it either right now, but maybe someday... I'm pretty new to matplotlib, so could you describe briefly what the differences would be in handling annotation objects instead? How complex would it be to use them instead?

from adjusttext.

Phlya avatar Phlya commented on August 19, 2024

Should be quite similar, you just need to figure out how to get bbox of the text part of the annotation...

from adjusttext.

alphapapa avatar alphapapa commented on August 19, 2024

Ok, thanks. I might take a look at this again in a few weeks. :)

from adjusttext.

Phlya avatar Phlya commented on August 19, 2024

Shouldn't be too complex I guess... You just need to get bbox from the text
of the annotation, not the whole annotation, I guess it should be possible
somehow.

2016-10-22 5:15 GMT+01:00 alphapapa [email protected]:

Okay, thanks. I probably don't have time to work on it either right now,
but maybe someday... I'm pretty new to matplotlib, so could you describe
briefly what the differences would be in handling annotation objects
instead? How complex would it be to use them instead?


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

from adjusttext.

y9c avatar y9c commented on August 19, 2024

Is there already any RP for this feature request?

from adjusttext.

Phlya avatar Phlya commented on August 19, 2024

from adjusttext.

y9c avatar y9c commented on August 19, 2024

For annotating line-line intersection, it is much clear to use annotation instead of text, meanwhile customizing the background of bbox make the label more obvious.

image

from adjusttext.

y9c avatar y9c commented on August 19, 2024

Another case of annotation label

before
image

after
image

Manually adjusting the annotation label make it meaningful.


For text label,

after adjustText
image

In spite of the location of text label is adjusted, it will mess up either. Cause there is no boarder for numbers, when the digits are too close, it is difficult to distinguish.

eg

123 45 vs 12 345

from adjusttext.

y9c avatar y9c commented on August 19, 2024

The main difference between ax.text and ax.annotation is that the text is for points only and annotation is suitable for higher dimension geometric elements.

from adjusttext.

Phlya avatar Phlya commented on August 19, 2024

from adjusttext.

Conceptron avatar Conceptron commented on August 19, 2024

Hi, is there any workaround for this? Maybe a snippet to get the text from annotations would help. Thanks

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.