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

The part of annotaion that exceed the aixs are not displayed #2047

Open
yangchao320 opened this issue Oct 17, 2023 · 2 comments
Open

The part of annotaion that exceed the aixs are not displayed #2047

yangchao320 opened this issue Oct 17, 2023 · 2 comments

Comments

@yangchao320
Copy link

Steps to reproduce

1.open the plot
2.add an arrow annotation that the startpoint and endpoint are both on the X-aixs

Platform:
.NET version: dotnet6
oxyplot version: 2.1.0

Expected behaviour

show the full view of the arrow annotation

Actual behaviour

the half bottom of the arrow annotation that exceed the axis is not visible
Snipaste_2023-10-17_10-52-51

@yangchao320 yangchao320 changed the title the part of annotaion that exceed the aixs are not displayed The part of annotaion that exceed the aixs are not displayed Oct 17, 2023
@sunwayking
Copy link

This is because of that annotations rendering layer is below title, box and normally axes.

@VisualMelon
Copy link
Contributor

Annotations always ask to be clipped to the plot area: you can disable this by overriding the GetClippingRect method on the annotation and returning OxyRect.Everything. An alternative presentation option would be to add some padding or margins to the axes so that the 0 line are not on the very edge of the plot

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

No branches or pull requests

3 participants