Skip to content

Commit

Permalink
Trim density and histogram plots (#280)
Browse files Browse the repository at this point in the history
* Trim density and histogram plots

* Update Project.toml
  • Loading branch information
devmotion authored Mar 24, 2021
1 parent d60fb10 commit b0da9f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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 = "4.7.2"
version = "4.7.3"

[deps]
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
Expand Down
2 changes: 2 additions & 0 deletions src/plot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ end
@recipe function f(p::_DensityPlot)
xaxis --> "Sample value"
yaxis --> "Density"
trim --> true
[collect(skipmissing(p.val[:,k])) for k in 1:size(p.val, 2)]
end

Expand All @@ -82,6 +83,7 @@ end
yaxis --> "Frequency"
fillalpha --> 0.7
bins --> 25
trim --> true
[collect(skipmissing(p.val[:,k])) for k in 1:size(p.val, 2)]
end

Expand Down

2 comments on commit b0da9f1

@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/32715

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 v4.7.3 -m "<description of version>" b0da9f1800b3b96cdb4f3f8dbb4fef1db7bd35bd
git push origin v4.7.3

Please sign in to comment.