Skip to content
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

[ENH]: Square speech bubble style for annotations #24564

Open
pawjast opened this issue Nov 29, 2022 · 1 comment
Open

[ENH]: Square speech bubble style for annotations #24564

pawjast opened this issue Nov 29, 2022 · 1 comment

Comments

@pawjast
Copy link

pawjast commented Nov 29, 2022

Problem

Hi,

I was wondering if it was possible to create a new style for annotations which would look like a speech bubble.
See below the 1st example of what it would look like (from MS Excel):

excel 1

Excel also offers a selection of shapes:

excel 2

A better - more modern version of that would look like this:

elon_musk_twitter_slide_deck_1

elon_musk_twitter_slide_deck_2

Proposed solution

No response

@tacaswell
Copy link
Member

tacaswell commented Nov 29, 2022

See https://matplotlib.org/stable/tutorials/text/annotations.html#annotating-with-text-with-box , I think you can update the path to get what ever shape you want now (but at the cost of writing the path your self) and has a number of (non-directional) shapes.

The tricky part of this generally is going to be merging the notion of the bounding box and the notion of arrow, but given that both are currently updated very late in the draw process, I strongly suspect that a bounding box that updates the spur based on where the annotated point is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants