-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
[BUG] Can not use function default to set labels correctly #3496
Labels
enhancement
improving existing functionality
Comments
Well, you can only set one default label at the moment. E.g. using Plots
x = 1:10; y = rand(10, 2) # 2 columns means two lines
default(label = "Line a")
plot(x, y, title = "Two Lines", lw = 3) That could be extended to accpecting functions or vectors. |
BeastyBlacksmith
added
enhancement
improving existing functionality
and removed
bug
labels
May 14, 2021
But you can set more than one labels when calling plot. using Plots
x = 1:10; y = rand(10, 2) # 2 columns means two lines
plot(x, y, title = "Two Lines", lw = 3, label = ["Line a" "Line b"]) |
Just a comment. This was used in the textbook Statistics With Julia. So apparently, at certain point in the past, this actually worked. |
t-bltg
changed the title
[BUG] Can not use function defaul to set labels correctly
[BUG] Can not use function default to set labels correctly
Nov 20, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Details
The following code generates picture with incorrect labels
The picture looks like this
Backends
This bug occurs on ( insert
x
below )Versions
Plots.jl version: v1.14.0
Backend version (
]st -m
):GR v0.57.4
PyPlot v2.9.0
Output of
versioninfo()
:The text was updated successfully, but these errors were encountered: