Skip to content

Commit

Permalink
Fix from_continuous with special colormaps (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel authored Feb 12, 2025
1 parent 16f1ad4 commit d9b9026
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.9.3 - 2025-02-12

- Fixed use of `from_continuous` with colormap specifications like `(colormap, alpha)` [#603](https://github.com/MakieOrg/AlgebraOfGraphics.jl/pull/603).

## v0.9.2 - 2025-02-03

- Fixed `data(...) * mapping(col => func => label => scale)` label-extraction bug [#596](https://github.com/MakieOrg/AlgebraOfGraphics.jl/pull/596).
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "AlgebraOfGraphics"
uuid = "cbdf2221-f076-402e-a563-3d30da359d67"
authors = ["Pietro Vertechi", "Julius Krumbiegel"]
version = "0.9.2"
version = "0.9.3"

[deps]
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
Expand Down
2 changes: 1 addition & 1 deletion src/scales.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ end
apply_palette(p::Union{AbstractArray, AbstractColorList}, uv) = collect(Iterators.map(Cycler(p), uv))
apply_palette(::Automatic, uv) = eachindex(uv)
apply_palette(f::Function, uv) = f(uv)
apply_palette(fc::FromContinuous, uv) = cgrad(fc.continuous, length(uv); categorical = true)
apply_palette(fc::FromContinuous, uv) = cgrad(Makie.to_colormap(fc.continuous), length(uv); categorical = true)

# TODO: add more customizations?
struct Wrap end
Expand Down

0 comments on commit d9b9026

Please sign in to comment.