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

FRQ: Plot arrows for annotations. #25

Open
hechtprojects opened this issue May 7, 2024 · 0 comments
Open

FRQ: Plot arrows for annotations. #25

hechtprojects opened this issue May 7, 2024 · 0 comments
Labels
good first issue Good for newcomers module: plot new feature New feature release: minor Issues that need to be addressed in a minor release status: to do Issues that someone needs to work on

Comments

@hechtprojects
Copy link
Member

Proposed new feature or change:

Add the following method (+ docstring + example) to amep.plot:

def draw_arrow(fig, x, y, dx, dy, **kwargs):
    arrow = FancyArrow(x, y, dx, dy, transform=fig.transFigure, length_includes_head=True, **kwargs)
    fig.add_artist(arrow)

This allows to draw an arrow that points from (x, y) to (x+dx, y+dy), which is useful for annotation purposes.

@hechtprojects hechtprojects added new feature New feature good first issue Good for newcomers release: minor Issues that need to be addressed in a minor release status: to do Issues that someone needs to work on module: plot labels May 7, 2024
@hechtprojects hechtprojects added this to the release v1.1.0 milestone Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers module: plot new feature New feature release: minor Issues that need to be addressed in a minor release status: to do Issues that someone needs to work on
Projects
None yet
Development

No branches or pull requests

1 participant