Skip to content

Commit c1642aa

Browse files
committed
Add axis for colorbar to steal space from
1 parent 13d9ce8 commit c1642aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rtm/plotting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def plot_record_section(st, origin_time, source_location, plot_celerity=None,
360360
if plot_celerity == 'range':
361361
mapper = plt.cm.ScalarMappable(cmap=cmap)
362362
mapper.set_array(celerity_list)
363-
cbar = fig.colorbar(mapper, label='Celerity (m/s)', pad=pad,
363+
cbar = fig.colorbar(mapper, ax=ax, label='Celerity (m/s)', pad=pad,
364364
aspect=30)
365365
cbar.ax.minorticks_on()
366366

0 commit comments

Comments
 (0)