Skip to content

BUG: do not hard-code matplotlib backend for boxplot #28159

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

Closed
wants to merge 2 commits into from
Closed
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
8 changes: 4 additions & 4 deletions pandas/plotting/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def hist_series(
--------
matplotlib.axes.Axes.hist : Plot a histogram using matplotlib.
"""
plot_backend = _get_plot_backend()
plot_backend = _get_plot_backend("matplotlib")
return plot_backend.hist_series(
self,
by=by,
Expand Down Expand Up @@ -180,7 +180,7 @@ def hist_frame(
... }, index=['pig', 'rabbit', 'duck', 'chicken', 'horse'])
>>> hist = df.hist(bins=3)
"""
plot_backend = _get_plot_backend()
plot_backend = _get_plot_backend("matplotlib")
return plot_backend.hist_frame(
data,
column=column,
Expand Down Expand Up @@ -405,7 +405,7 @@ def boxplot_frame(
return_type=None,
**kwds
):
plot_backend = _get_plot_backend()
plot_backend = _get_plot_backend("matplotlib")
return plot_backend.boxplot_frame(
self,
column=column,
Expand Down Expand Up @@ -484,7 +484,7 @@ def boxplot_frame_groupby(
>>> grouped = df.unstack(level='lvl1').groupby(level=0, axis=1)
>>> boxplot_frame_groupby(grouped, subplots=False)
"""
plot_backend = _get_plot_backend()
plot_backend = _get_plot_backend("matplotlib")
return plot_backend.boxplot_frame_groupby(
grouped,
subplots=subplots,
Expand Down