Skip to content

Commit

Permalink
fix initialization of ss_heatmap parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Dec 20, 2024
1 parent 8087964 commit a229668
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/MolSimStyle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const MolSimStyle_parameters = Dict{Symbol,Any}(
#
# overwrite default parameters or add parameters if other kargs where passed
#
function _kargs(parameters = MolSimStyle_parameters; kargs)
custom_parameters = copy(parameters)
function _kargs(default=MolSimStyle_parameters; kargs)
custom_parameters = deepcopy(default)
for karg in keys(kargs)
custom_parameters[karg] = kargs[karg]
end
Expand Down
2 changes: 2 additions & 0 deletions ext/SecondaryStructure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ function MolSimToolkit.ss_heatmap(
:clims => (0.5,10.5),
:xlabel => "frame",
:ylabel => "residue",
:fontfamily => "Computer Modern",
:adjust_latex_font => true,
)
plt = Plots.heatmap(MolSimStyle, scalex*(1:size(ssmap,2)), 1:size(ssmap,1), ssmap; _kargs(default; kargs)...)
return plt
Expand Down

0 comments on commit a229668

Please sign in to comment.