Skip to content

Commit

Permalink
Fix plot labels (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion authored Feb 22, 2022
1 parent 53bf939 commit c26e5cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ uuid = "c7f686f2-ff18-58e9-bc7b-31028e88f75d"
keywords = ["markov chain monte carlo", "probablistic programming"]
license = "MIT"
desc = "Chain types and utility functions for MCMC simulations."
version = "5.0.3"
version = "5.0.4"

[deps]
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
Expand Down
4 changes: 2 additions & 2 deletions src/plot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ const supportedplots = push!(collect(keys(translationdict)), :mixeddensity, :cor

if colordim == :parameter
title --> "Chain $(MCMCChains.chains(c)[i])"
label --> string.(names(c))
label --> permutedims(map(string, names(c)))
val = c.value[:, :, i]
elseif colordim == :chain
title --> string(names(c)[i])
label --> map(x -> "Chain $x", MCMCChains.chains(c))
label --> permutedims(map(x -> "Chain $x", MCMCChains.chains(c)))
val = c.value[:, i, :]
else
throw(ArgumentError("`colordim` must be one of `:chain` or `:parameter`"))
Expand Down
2 changes: 1 addition & 1 deletion test/plot_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ Logging.disable_logging(Logging.Warn)
end

# Reset log level.
Logging.disable_logging(level)
Logging.disable_logging(level)

2 comments on commit c26e5cf

@cpfiffer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/55231

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v5.0.4 -m "<description of version>" c26e5cf940b7af8fda2bb7ec69caa03f1af73076
git push origin v5.0.4

Please sign in to comment.