Skip to content

skip annotations for plot title subplot #5104

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

Merged
merged 4 commits into from
Jun 10, 2025

Conversation

InfiniteChai
Copy link
Contributor

Description

When applying annotations to a plot which has used plot_title the behaviour is inconsistent. Applying it as part of the initial plot will not apply the annotation to the title sub-plot but doing it separately will.

scatter([4], [4], plot_title = "x", xlims = (0, 10), ylims = (0, 10), annotation=(4,4,"4"))

versus

scatter([4], [4], plot_title = "x", xlims = (0, 10), ylims = (0, 10))
annotate!(4, 4, "4")

It seems sensible to never have annotations applied to the plot title sub-plot, so updating to ignore these property updates and get consistent behaviour. This fixes #5096

@t-bltg t-bltg added the bug label Jun 9, 2025
Copy link
Member

@t-bltg t-bltg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@t-bltg t-bltg merged commit f54c59b into JuliaPlots:v2 Jun 10, 2025
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Duplicate annotation related to plot_title
2 participants