Skip to content

Commit

Permalink
Fix colorbar zorder in plot_slip and plot_timespans
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiodsf committed Apr 3, 2024
1 parent 8a7c99d commit ea82ed8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions requake/plot/plot_slip.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def plot_slip(config):
ax.set_ylabel('Cumulative Slip (cm)')
sm = cm.ScalarMappable(cmap=cmap, norm=norm)
cbar = fig.colorbar(sm, ticks=range(10), ax=ax)
cbar.ax.set_zorder(-1)
cbar.ax.set_ylabel('mod(family number, 10)')

# Empty annotation that will be updated interactively
Expand Down
1 change: 1 addition & 0 deletions requake/plot/plot_timespans.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def plot_timespans(config):
ax.set_ylabel(ylabel)
sm = cm.ScalarMappable(cmap=cmap, norm=norm)
cbar = fig.colorbar(sm, ticks=range(10), ax=ax)
cbar.ax.set_zorder(-1)
cbar.ax.set_ylabel('mod(family number, 10)')

# Empty annotation that will be updated interactively
Expand Down

0 comments on commit ea82ed8

Please sign in to comment.