Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First commit for violinplot ( #14 )
plot_violin
computes kde marginal densities likeplot_dist
does and then flips the 'x' and 'y' values to generate the characteristic violin-shape.Separate artists have been defined for 'left' and 'right' densities and thus can be customized aesthetically or switched on/off with relevant
plot_kwargs
. In addition, I've also computed them separately so that this computation can also be customized throughstats_kwargs
, through things like bandwidth and others.The
line_xy
visual element was modified with a new keyword arg 'negative' that makes either thesel(plot_axis='x')
orsel(plot_axis='y')
dataarrays negativeNew visual elements were added for
line_y
andscatter_y
which are pretty much symmetrical toline_x
andscatter_x
but for the other axis.The 'y' aesthetic mapping applied to the credible interval, point estimate and point estimate text in
plot_dist
was converted to an 'x' aesthetic in case of multiple models- this needs refinement though (Maybe a mapping akin to the one in the ESS Plot PR Add ESS Plot #58 )The
remove_axis
is now applied to the 'x' axis and a modification was required in the matplotlib backend for remove_axis for thisPossible improvement: having a separate 'face' and 'edge' artist for the left and right densities, like plot_ridge. This will require creating a symmetrical visual element for
fill_between_x
likefill_between_y
.📚 Documentation preview 📚: https://arviz-plots--85.org.readthedocs.build/en/85/