-
Notifications
You must be signed in to change notification settings - Fork 250
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
key for linestyle #1558
Comments
Something that I was working towards (when I use to have time!), was to switch the discrete color aesthetic to use |
Will this be done within the next 3-5 months? |
i'm getting some unexpected and inconsistent output when using the shape, size, color, and linestyle aesthetics. i would expect with with with with @Mattriks do you concur that these are all bugs? if so, what can we change and still respect semantic versioning? |
discrete colors is easy of course. just add a size key is a bit more cumbersome with |
Here are some answers to your q's:
# Shape applies to points not lines. What shape is a line? 🤔
shape = [1,1,1,2,2,2]
plot(x=[1,2,3,1,2,3], y=[1,2,3,4,5,6], group=shape, shape=shape, Geom.line, Geom.point) |
it's not intuitive that one automatically gets a key for shape (w/o adding Scale.shape_discrete) but that for size one needs to add a scale. is there a reason for this design? why can't we just automatically include Scale.size_discrete2 if the aesthetic is discrete? |
The current issue with |
The discussion seems to have expanded and wandered from the title. But that title, and the question
is exactly my current concern. The subsequent responses address some the other issues mentioned, but not the basic provision of a key for linestyle that I can see. It seems even the gallery exhibiting https://docs.juliahub.com/Gadfly/DvECm/1.3.2/gallery/scales/#[Scale.linestyle_discrete](@ref) shows a graph that has nothing on it explaining what the different linestyles mean, i.e., it just illustrates that the feature doesn't work. I would expect plot(pdat, x=:σ, y=:MSEP, color=:τ, linestyle=:pred, Scale.color_discrete(), Geom.line, Scale.linestyle_discrete(order=[1, 2])) where the values of Is this a bug? Perhaps I've misunderstood something. My example does raise an additional complication, what color (and potentially other aesthetics) to use for the linestyles. I think this is the same issue one would confront if making a legend for shapes, or sizes, or other things the package already manages. I'd be fine with black or even a random selection from the colors used in the plot. |
@Mattriks you've done a lot with the key, but i don't recall if you have plans to work on including linestyle. i have a need for both color and linestyle in the key, and can devote some time to implement. wanted to check with you first though.
The text was updated successfully, but these errors were encountered: