Skip to content

Commit

Permalink
removing colorrange
Browse files Browse the repository at this point in the history
  • Loading branch information
PavanChaggar committed Sep 18, 2023
1 parent ae6bb28 commit 304a8de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plotting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ function plot_parc(parc::Parcellation; view=:left)
f
end

function plot_roi!(roi::Int, color=(:grey,1.0); transparency=false, colorrange=(0., 1.))
function plot_roi!(roi::Int, color=(:grey,1.0); transparency=false)
roi = joinpath(meshpath, "meshes/DKT/roi_$(roi).obj")
mesh!(load(roi), color=color, transparency=transparency, colorrange=colorrange)
mesh!(load(roi), color=color, transparency=transparency)
end

function plot_roi!(rois::Vector{Int64}, colors::Vector{Float64}, cmap::ColorScheme; transparency=false, colorrange=(0.,1.))
[plot_roi!(roi, get(cmap, color); transparency=transparency, colorrange=colorrange) for (roi, color) in zip(rois, colors)]
function plot_roi!(rois::Vector{Int64}, colors::Vector{Float64}, cmap::ColorScheme; transparency=false)
[plot_roi!(roi, get(cmap, color); transparency=transparency) for (roi, color) in zip(rois, colors)]
end

function plot_roi(rois, colors, cmap; transparency=false, view=:front, resolution=(1600,900))
Expand Down

0 comments on commit 304a8de

Please sign in to comment.