0

I plot m1 and m2 with seaborn.jointplot as below. The color bars marked with a red circle representing probability density in contour region are linear scale, but I want to make them follow logscale, how to make it?

sns.jointplot(data = df_mass_mass_ratio_inner_pbf_0_1_tsunami, x = "$m_{1}$", y = "$m_{2}/m_{1}$", cbar = False, cbar = True, n_levels = 10, kind = "kde", hue = "$f_{b}$",  
              joint_kws = {"log_scale": True, "shade": True, "alpha": 0.5}, 
              marginal_kws = {"shade": True, "alpha": 0.1, "common_norm": False, "log_scale": False},
              marginal_ticks = True, height = 6, ratio = 3, 
              space = 0.1, palette = "turbo", legend = True)

my figure

I would like to know how to make color bars representing probability density in contour region marked with a red circle follow logscale (please note that what I want is to make color bars follow logscale instead of coordinate axes). Thanks!

Shuai Liu
  • 1
  • 1

0 Answers0