Skip to content

Commit

Permalink
feat: adjust shading in plot_vs_year
Browse files Browse the repository at this point in the history
  • Loading branch information
rneher committed Sep 7, 2023
1 parent a642872 commit f0ef508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions treetime/treetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -1168,8 +1168,8 @@ def plot_vs_years(tt, step = None, ax=None, confidence=None, ticks=True, selecti
pos = year - offset
r = Rectangle((pos, ylim[1]-5),
step, ylim[0]-ylim[1]+10,
facecolor=[0.7+0.1*(1+yi%2)] * 3,
edgecolor=[1,1,1])
facecolor=[0.88+0.04*(1+yi%2)] * 3,
edgecolor=[0.8,0.8,0.8])
ax.add_patch(r)
if step>=1:
if year in tick_vals and pos>=xlim[0] and pos<=xlim[1] and ticks:
Expand Down

0 comments on commit f0ef508

Please sign in to comment.