Skip to content

Commit

Permalink
Add colorscale keyword in plot_image
Browse files Browse the repository at this point in the history
  • Loading branch information
pvillacorta committed Jan 23, 2025
1 parent ce7aef0 commit 9f18312
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion KomaMRIPlots/src/ui/DisplayFunctions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,7 @@ function plot_image(
zmax=maximum(image[:]),
darkmode=false,
title="",
colorscale="Greys"
)
#Layout
bgcolor, text_color, plot_bgcolor, grid_color, sep_color = theme_chooser(darkmode)
Expand Down Expand Up @@ -825,7 +826,7 @@ function plot_image(
l.width = width
end
#Plot
p = heatmap(; z=image, transpose=false, zmin=zmin, zmax=zmax, colorscale="Greys")
p = heatmap(; z=image, transpose=false, zmin=zmin, zmax=zmax, colorscale=colorscale)
config = PlotConfig(;
displaylogo=false,
toImageButtonOptions=attr(;
Expand Down

0 comments on commit 9f18312

Please sign in to comment.