Skip to content

Commit

Permalink
Change colormap for adjacency (#521)
Browse files Browse the repository at this point in the history
* use white -> black gray scale in `adjacency`

* bump version
  • Loading branch information
harisorgn authored Jan 7, 2025
1 parent 2083c02 commit c4e0f9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name = "Neuroblox"
uuid = "769b91e5-4c60-41ee-bfae-153c84203cb2"
repo = "https://github.com/Neuroblox/Neuroblox.jl.git"
version = "0.5.3"
version = "0.5.4"

[deps]
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
ChainRules = "082447d4-558c-5d27-93f4-14fc19e9eca2"
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa"
DSP = "717857b8-e6f2-59f4-9121-6e50c889abd2"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Expand Down
7 changes: 3 additions & 4 deletions ext/MakieExtension.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ using LinearAlgebra: diag
using SparseArrays
using DSP
using Statistics: mean, std

using Colors: colormap

import Neuroblox: meanfield, meanfield!, rasterplot, rasterplot!, stackplot, stackplot!,
frplot, frplot!, voltage_stack, ecbarplot, ecbarplot!, freeenergy, freeenergy!,
Expand All @@ -20,7 +20,6 @@ import Neuroblox: powerspectrumplot, powerspectrumplot!

@recipe(Adjacency, blox_or_graph) do scene
Theme(
colormap = :grays,
colorrange = nothing
)
end
Expand Down Expand Up @@ -48,8 +47,8 @@ function Makie.plot!(p::Adjacency)
else
p.colorrange[]
end

heatmap!(p, Y, X, D; colormap = p.colormap[], colorrange)
cm = colormap("Grays")
heatmap!(p, Y, X, D; colormap = cm, colorrange)

return p
end
Expand Down

0 comments on commit c4e0f9a

Please sign in to comment.