def plot_hexbins(ax, fig, cond_name, cond_df, hb_params):
    """Plotting the hexbins."""
    hb = ax.hexbin(cond_df[hb_params['x_col']], cond_df[hb_params['y_col']],
        C=cond_df[hb_params['color']], cmap=hb_params['cmap'], mincnt=
        hb_params['min_cnt'], linewidth=0, edgecolor='none', gridsize=
        hb_params['gridsize'])
    ax.set_aspect('equal', 'datalim')
    fig.colorbar(hb, ax=ax)
