Repository navigation
Plot pdf of discrete univariate distributions in documentation - #2094
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2094 +/- ##
=======================================
Coverage 86.76% 86.76%
=======================================
Files 149 149
Lines 8888 8888
=======================================
Hits 7712 7712
Misses 1176 1176 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Can you show how it looks? Previews are not deployed for PRs from forks. |
| dist::ContinuousUnivariateDistribution; | ||
| npoints=299, | ||
| title="", | ||
| linewidth=2.0, # thick lines |
There was a problem hiding this comment.
Make this a common option in _plotdensity above?
There was a problem hiding this comment.
linewidth argument is not doing anything on GR.stem. I don't really know why, the documentation of GR is quite obscure (https://gr-framework.org/julia-jlgr.html).
So I guess linewidth only makes sense when it is a line plot, so only for continuous distributions.
There was a problem hiding this comment.
Hmm, but clearly the lines of the stem plot are thinner.
Co-authored-by: David Müller-Widmann <devmotion@users.noreply.github.com>
The plots were already in place for continuous distributions but not for discrete ones.
I simply replaced
plotwithstem, the xlabel and the ylabel.I also tried to select examples that highlight the characteristics of each (asymmetry, etc.).