-
-
Notifications
You must be signed in to change notification settings - Fork 361
Closed
Labels
MakieBackend independent issues (Makie core)Backend independent issues (Makie core)enhancementFeature requests and enhancementsFeature requests and enhancementsplanningFor discussion and planning developmentFor discussion and planning development
Description
I've just noticed that it is a bit problematic to use a numeric color attributes in separate plots in the same axis.
For example, the following:
using CairoMakie
f = Figure()
ax = Axis(f[1, 1])
x1, y1, z1 = 1:10, 1:10, rand(10)
x2, y2, z2 = 11:20, 1:10, rand(10) .+ 100
scatter!(ax, x1, y1, color = z1)
scatter!(ax, x2, y2, color = z2)
fgenerates this figure
whereas IMO it should look something like this:
That is to say, I imagine that the "colorrange" transform should be a property of the axis, pretty much like the x and y limits.
I'm not sure what is the best fix is in practice, maybe there could be some linkcolors! analogous to linkaxes!?
Metadata
Metadata
Assignees
Labels
MakieBackend independent issues (Makie core)Backend independent issues (Makie core)enhancementFeature requests and enhancementsFeature requests and enhancementsplanningFor discussion and planning developmentFor discussion and planning development

