Gadfly.jl
Gadfly.jl copied to clipboard
Feature request: enable color aesthetic on Geom.label
It's not just that I would like to plot a rainbow mess of emoji, but also that this gives us a way to make simple scatter plots with more than one symbol.
This would break some existing plots that are currently using labels in the same layer as a Geom that uses color like
plot(dataset("ggplot2", "mpg"), x="Cty", y="Hwy", label="Model", color="Drv", Geom.point, Geom.label)
but it could still be done with two layers. If this seems like a good idea I should be able to put together a diff.
This would be a nice thing to have. My main concern is that text will be illegible with some colors. Maybe the way to go is to add an ignore_color
parameter to Geom.label that defaults to true.
See also https://discourse.julialang.org/t/gadfly-label-coloring/37374
i hope this gets resolved soon.
I started to look at this, but ran into GiovineItalia/Compose.jl#348 i.e. there's an issue with the fill property for svg text in Compose.
Any progress on this?!
I'm wondering the same.
I'm having the same problem.