Skip to content

Readability and efficiency #509

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 1 commit 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
6 changes: 2 additions & 4 deletions src/mplfinance/_panels.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,8 @@ def _build_panels( figure, config ):
ax0 = figure.add_axes( [left_pad, bot_pad+lift, plot_width, height], sharex=panels.at[0,'axes'][0] )
ax1 = ax0.twinx()
ax1.grid(False)
if config['saxbelow']: # issue#115 issuecomment-639446764
ax0.set_axisbelow(True) # so grid does not show through plot data on any panel.
elif panid == volume_panel:
ax0.set_axisbelow(True) # so grid does not show through volume bars.
if config['saxbelow'] or (panid == volume_panel): # issue#115 issuecomment-639446764
ax0.set_axisbelow(True) # so grid does not show through plot data on any panel, and does not show through volume bars.
panels.at[panid,'axes'] = (ax0,ax1)

return panels
Expand Down