Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Adding PPC plot to Arviz-Plots #55

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/arviz_plots/backend/none/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,17 @@ def _filter_kwargs(kwargs, artist_kws):


def hist(
y, l_e, r_e, target, *, bottom=None, color=unset, facecolor=unset, edgecolor=unset, **artist_kws
y,
l_e,
r_e,
target,
*,
bottom=None,
color=unset,
alpha=unset,
facecolor=unset,
edgecolor=unset,
**artist_kws,
):
"""Interface to matplotlib for a histogram bar plot."""
if not ALLOW_KWARGS and artist_kws:
Expand All @@ -200,7 +210,7 @@ def hist(
facecolor = color
if edgecolor is unset:
edgecolor = color
kwargs = {"bottom": bottom, "facecolor": facecolor, "edgecolor": edgecolor}
kwargs = {"bottom": bottom, "facecolor": facecolor, "edgecolor": edgecolor, "alpha": alpha}
artist_element = {
"function": "hist",
"l_e": np.atleast_1d(l_e),
Expand Down
2 changes: 2 additions & 0 deletions src/arviz_plots/plots/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from .compareplot import plot_compare
from .distplot import plot_dist
from .forestplot import plot_forest
from .ppcplot import plot_ppc
from .ridgeplot import plot_ridge
from .tracedistplot import plot_trace_dist
from .traceplot import plot_trace
Expand All @@ -14,4 +15,5 @@
"plot_trace",
"plot_trace_dist",
"plot_ridge",
"plot_ppc",
]
Loading
Loading