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

[FR] Allow tuples of Plots.text arguments to series_annotations #3629

Closed
anowacki opened this issue Jul 7, 2021 · 0 comments · Fixed by #3743
Closed

[FR] Allow tuples of Plots.text arguments to series_annotations #3629

anowacki opened this issue Jul 7, 2021 · 0 comments · Fixed by #3743
Labels
enhancement improving existing functionality

Comments

@anowacki
Copy link
Contributor

anowacki commented Jul 7, 2021

Since v0.22.2 Plots has allowed the user to pass tuples of arguments to Plots.text as part of the annotations attribute. However, this is not possible for series_attributes, which requires either Strings or Plots.PlotText objects:

julia> using Plots

julia> plot([1, 2], [3, 4], series_annotations=[("A", :red), ("B", :blue)])

text

I suggest that it would be useful to mirror the support for tuples of arguments to text.

Discussed in JuliaPlots/RecipesBase.jl#72

Also relevant: #3473

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

Successfully merging a pull request may close this issue.

2 participants