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

Make the legends interactive in bokeh #1024

Merged
merged 20 commits into from
Feb 13, 2020
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
corrected the sphinx error
  • Loading branch information
percygautam committed Feb 10, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 8f605676da70cac79af5fb7b674681dc9e6da442
2 changes: 1 addition & 1 deletion arviz/plots/kdeplot.py
Original file line number Diff line number Diff line change
@@ -91,7 +91,7 @@ def plot_kde(

Returns
-------
axes : matplotlib axes or bokeh figures
axes : matplotlib axes or bokeh figures and glyphs
Copy link
Member

Choose a reason for hiding this comment

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

(docstring comment)

Returns
-------
axes : matplotlib.Axes or bokeh.plotting.Figure
    Object containing the kde plot
glyphs : list, optional
    Bokeh glyphs present in plot.  Only provided if ``return_glyph`` is True.

Followed numpy docs like np.unique


Examples
--------
2 changes: 1 addition & 1 deletion examples/bokeh/bokeh_plot_kde.py
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
figure_kwargs = dict(height=500, width=500, output_backend="webgl")
ax = bkp.figure(**figure_kwargs)

ax = az.plot_kde(
ax, _ = az.plot_kde(
y_hat,
label="Estimated Effect\n of SAT Prep",
rug=True,
2 changes: 1 addition & 1 deletion examples/bokeh/bokeh_plot_kde_2d.py
Original file line number Diff line number Diff line change
@@ -7,4 +7,4 @@
import arviz as az
import numpy as np

ax = az.plot_kde(np.random.rand(100), np.random.rand(100), backend="bokeh")
ax, _ = az.plot_kde(np.random.rand(100), np.random.rand(100), backend="bokeh")
2 changes: 1 addition & 1 deletion examples/bokeh/bokeh_plot_kde_quantiles.py
Original file line number Diff line number Diff line change
@@ -8,4 +8,4 @@
import numpy as np

dist = np.random.beta(np.random.uniform(0.5, 10), 5, size=1000)
ax = az.plot_kde(dist, quantiles=[0.25, 0.5, 0.75], backend="bokeh")
ax, _ = az.plot_kde(dist, quantiles=[0.25, 0.5, 0.75], backend="bokeh")