-
Notifications
You must be signed in to change notification settings - Fork 47
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
Can't map data to alpha
values
#482
Comments
Also, an additional note - I spent a bit of time trying to figure out how to manually create a vector of color values that would include my custom alpha, but ran into a couple issues
Basically what I'd be looking for would be that the |
Also the much simpler (only one alpha value per line) runs into this issue: using GLMakie
using AlgebraOfGraphics
using DataFrames
dat = DataFrame(
x = 1:10,
y = 11:20,
z = ['a','a','a','b','b','b','c','c','c','c']
)
data(dat) *
mapping(:x, :y,
# color=:z, # works fine
alpha=:z, # errors
group=:z) *
visual(Lines) |> draw unfold for full errorERROR: ArgumentError: ProcessedLayer with plot type Lines did not have :alpha in its AestheticMapping. The mapping was {1 = AlgebraOfGraphics.AesX, 2 = AlgebraOfGraphics.AesY, :color = AlgebraOfGraphics.AesColor, :linestyle = AlgebraOfGraphics.AesLineStyle} |
Bug description
I'm trying to map data to the
alpha
keyword, to create varying transparency for different data points. When I try to do so, it throws a Method error.Steps to reproduce
This code reproduces the issue:
It throws an error:
Version info
The text was updated successfully, but these errors were encountered: