<jupyter_start><jupyter_text>ABSOLUTE RELATIONSHIPS:  All below 100 hPa<jupyter_code>case_sec<jupyter_output><empty_output><jupyter_text>Case: OsloAero_imp<jupyter_code>case_base=case_orig

fig, axs = plt.subplots(3,2, figsize=[6.4,7.1], sharey=True)#, constrained_layout=True)
var_xl = ['NUCLRATE','GR','H2SO4','SOA_LV','NCONC01','COAGNUCL']
lev_min=100.
_ds = ds_diff.sel(lev=slice(lev_min, None))
var_diff = 'NCONC01_'+case_base
xlims = {
    'NUCLRATE' : [1.e-6,10],
    'H2SO4' : [1.e-3,1],
    'SOA_LV' : [1.e-5,1],
    'GR' : [1.e-3,1],
    'N_AER':[1e0,1e4],
    'NCONC01':[10,5e3],
    'COAGNUCL':[1e-4,1],
}

stit = _plt_tmp(_ds,axs,var_xl, var_diff, xlims, ylim=[10,5e3], yscale='log', case_base=case_base)
uni = var_info.get_fancy_unit_xr(_ds[var_diff], var_diff)
fvar_diff = get_fancy_var_name('NCONC01')
for ax in axs[:,0]:
    print('hey')
    ax.set_ylabel(f'{fvar_diff} [{uni}]')

    
suptit =f'{fvar_diff}$(m)$ vs. $X(m)$ \n for $m=${get_nice_name_case(case_base)}'
fig.subplots_adjust(hspace=.5, wspace=0.1)#,top=0.8, )
stit = fig.suptitle(suptit,  fontsize=12, y=.98)

fn = plot_path + f'2dhist_abs{case_base}.'
fig.savefig(fn+'pdf',bbox_extra_artists=(stit,), bbox_inches='tight')
fig.savefig(fn+'png',bbox_extra_artists=(stit,), bbox_inches='tight')
plt.show()
print(fn)<jupyter_output>NUCLRATE
[1e-06, 10]
[10, 5000.0]
set log scale
GR
[0.001, 1]
[10, 5000.0]
set log scale
H2SO4
[0.001, 1]
[10, 5000.0]
set log scale
SOA_LV
[1e-05, 1]
[10, 5000.0]
set log scale
NCONC01
[10, 5000.0]
[10, 5000.0]
set log scale
COAGNUCL
[0.0001, 1]
[10, 5000.0]
set log scale
hey
hey
hey<jupyter_text>Case: OsloAeroSec<jupyter_code>case_base=case_sec

fig, axs = plt.subplots(3,2, figsize=[6.4,7.1], sharey=True)#, constrained_layout=True)
var_xl = ['NUCLRATE','GR','H2SO4','SOA_LV','NCONC01','COAGNUCL']
lev_min=100.
_ds = ds_diff.sel(lev=slice(lev_min, None))
var_diff = 'NCONC01_'+case_base
xlims = {
    'NUCLRATE' : [1.e-6,10],
    'H2SO4' : [1.e-3,1],
    'SOA_LV' : [1.e-5,1],
    'GR' : [1.e-3,1],
    'N_AER':[1e0,1e4],
    'NCONC01':[10,5e3],
    'COAGNUCL':[1e-4,1],
}

stit = _plt_tmp(_ds,axs,var_xl, var_diff, xlims, ylim=[10,5e3], yscale='log', case_base=case_base)
uni = var_info.get_fancy_unit_xr(_ds[var_diff], var_diff)
fvar_diff = get_fancy_var_name('NCONC01')
for ax in axs[:,0]:
    print('hey')
    ax.set_ylabel(f'{fvar_diff} [{uni}]')

    
suptit =f'{fvar_diff}$(m)$ vs. $X(m)$ \n for $m=${get_nice_name_case(case_base)}'
fig.subplots_adjust(hspace=.5, wspace=0.1)#,top=0.8, )
stit = fig.suptitle(suptit,  fontsize=12, y=.98)

fn = plot_path + f'2dhist_abs{case_base}.'
fig.savefig(fn+'pdf',bbox_extra_artists=(stit,), bbox_inches='tight', dpi=300)
#fig.savefig(fn+'png',bbox_extra_artists=(stit,), bbox_inches='tight')
plt.show()
print(fn)<jupyter_output>NUCLRATE
[1e-06, 10]
[10, 5000.0]
set log scale
GR
[0.001, 1]
[10, 5000.0]
set log scale
H2SO4
[0.001, 1]
[10, 5000.0]
set log scale
SOA_LV
[1e-05, 1]
[10, 5000.0]
set log scale
NCONC01
[10, 5000.0]
[10, 5000.0]
set log scale
COAGNUCL
[0.0001, 1]
[10, 5000.0]
set log scale
hey
hey
hey<jupyter_text>Surface<jupyter_code>fig, axs = plt.subplots(3,2, figsize=[6.4,7.1], sharey=True)#, constrained_layout=True)
var_xl = ['NUCLRATE','GR','H2SO4','SOA_LV','NCONC01','COAGNUCL']
lev_min=100.
#_ds = ds_diff.sel(lev=slice(lev_min, None))
_ds = ds_diff.isel(lev=-1)#lev=slice(lev_min, None))

var_diff = 'NCONC01_'+case_orig
xlims = {
    'NUCLRATE' : [1.e-6,10],
    'H2SO4' : [1.e-3,1],
    'SOA_LV' : [1.e-5,1],
    'GR' : [1.e-3,1],
    'N_AER':[1e0,1e4],
    'NCONC01':[10,5e3],
    'COAGNUCL':[1e-4,1],
}

stit = _plt_tmp(_ds,axs,var_xl, var_diff, xlims, ylim=[10,5e3], yscale='log')
uni = var_info.get_fancy_unit_xr(_ds[var_diff], var_diff)
fvar_diff = get_fancy_var_name('NCONC01')
for ax in axs[:,0]:
    print('hey')
    ax.set_ylabel(f'{fvar_diff} [{uni}]')

    
suptit =f'{fvar_diff}$(m)$ vs. $X(m)$ \n for $m=${get_nice_name_case(case_orig)}'
fig.subplots_adjust(hspace=.5, wspace=0.1)#,top=0.8, )
stit = fig.suptitle(suptit,  fontsize=12, y=.98)

fn = plot_path + f'2dhist_abs{case_orig}.'
#fig.savefig(fn+'pdf',bbox_extra_artists=(stit,), bbox_inches='tight')
#fig.savefig(fn+'png',bbox_extra_artists=(stit,), bbox_inches='tight')
plt.show()
print(fn)<jupyter_output>NUCLRATE
[1e-06, 10]
[10, 5000.0]
set log scale
GR
[0.001, 1]
[10, 5000.0]
set log scale
H2SO4
[0.001, 1]
[10, 5000.0]
set log scale
SOA_LV
[1e-05, 1]
[10, 5000.0]
set log scale
NCONC01
[10, 5000.0]
[10, 5000.0]
set log scale
COAGNUCL
[0.0001, 1]
[10, 5000.0]
set log scale
hey
hey
hey<jupyter_text>Case: OsloAeroSec<jupyter_code>case_base=case_sec

fig, axs = plt.subplots(3,2, figsize=[6.4,7.1], sharey=True)#, constrained_layout=True)
var_xl = ['NUCLRATE','GR','H2SO4','SOA_LV','NCONC01','COAGNUCL']
lev_min=850.
_ds = ds_diff.isel(lev=-1)#slice(lev_min, None))
var_diff = 'NCONC01_'+case_base
xlims = {
    'NUCLRATE' : [1.e-6,10],
    'H2SO4' : [1.e-3,1],
    'SOA_LV' : [1.e-5,1],
    'GR' : [1.e-3,1],
    'N_AER':[1e0,1e4],
    'NCONC01':[10,5e3],
    'COAGNUCL':[1e-4,1],
}

stit = _plt_tmp(_ds,axs,var_xl, var_diff, xlims, ylim=[10,5e3], yscale='log', case_base=case_base)
uni = var_info.get_fancy_unit_xr(_ds[var_diff], var_diff)
fvar_diff = get_fancy_var_name('NCONC01')
for ax in axs[:,0]:
    print('hey')
    ax.set_ylabel(f'{fvar_diff} [{uni}]')

    
suptit =f'{fvar_diff}$(m)$ vs. $X(m)$ \n for $m=${get_nice_name_case(case_base)}'
fig.subplots_adjust(hspace=.5, wspace=0.1)#,top=0.8, )
stit = fig.suptitle(suptit,  fontsize=12, y=.98)

fn = plot_path + f'2dhist_abs{case_base}.'
#fig.savefig(fn+'pdf',bbox_extra_artists=(stit,), bbox_inches='tight')
#fig.savefig(fn+'png',bbox_extra_artists=(stit,), bbox_inches='tight')
plt.show()
print(fn)<jupyter_output>NUCLRATE
[1e-06, 10]
[10, 5000.0]
set log scale
GR
[0.001, 1]
[10, 5000.0]
set log scale
H2SO4
[0.001, 1]
[10, 5000.0]
set log scale
SOA_LV
[1e-05, 1]
[10, 5000.0]
set log scale
NCONC01
[10, 5000.0]
[10, 5000.0]
set log scale
COAGNUCL
[0.0001, 1]
[10, 5000.0]
set log scale
hey
hey
hey<jupyter_text>below 850.  Case: OsloAero_imp<jupyter_code>case_base=case_orig

fig, axs = plt.subplots(3,2, figsize=[6.4,7.1], sharey=True)#, constrained_layout=True)
var_xl = ['NUCLRATE','GR','H2SO4','SOA_LV','NCONC01','COAGNUCL']
lev_min=850.
_ds = ds_diff.sel(lev=slice(lev_min, None))
var_diff = 'NCONC01_'+case_base
xlims = {
    'NUCLRATE' : [1.e-6,10],
    'H2SO4' : [1.e-3,1],
    'SOA_LV' : [1.e-5,1],
    'GR' : [1.e-3,1],
    'N_AER':[1e0,1e4],
    'NCONC01':[10,5e3],
    'COAGNUCL':[1e-4,1],
}

stit = _plt_tmp(_ds,axs,var_xl, var_diff, xlims, ylim=[10,5e3], yscale='log', case_base=case_base)
uni = var_info.get_fancy_unit_xr(_ds[var_diff], var_diff)
fvar_diff = get_fancy_var_name('NCONC01')
for ax in axs[:,0]:
    print('hey')
    ax.set_ylabel(f'{fvar_diff} [{uni}]')

    
suptit =f'{fvar_diff}$(m)$ vs. $X(m)$ \n for $m=${get_nice_name_case(case_base)}'
fig.subplots_adjust(hspace=.5, wspace=0.1)#,top=0.8, )
stit = fig.suptitle(suptit,  fontsize=12, y=.98)

fn = plot_path + f'2dhist_abs{case_base}.'
#fig.savefig(fn+'pdf',bbox_extra_artists=(stit,), bbox_inches='tight')
#fig.savefig(fn+'png',bbox_extra_artists=(stit,), bbox_inches='tight')
plt.show()
print(fn)<jupyter_output>NUCLRATE
[1e-06, 10]
[10, 5000.0]
set log scale
GR
[0.001, 1]
[10, 5000.0]
set log scale
H2SO4
[0.001, 1]
[10, 5000.0]
set log scale
SOA_LV
[1e-05, 1]
[10, 5000.0]
set log scale
NCONC01
[10, 5000.0]
[10, 5000.0]
set log scale
COAGNUCL
[0.0001, 1]
[10, 5000.0]
set log scale
hey
hey
hey<jupyter_text>Case: OsloAeroSec<jupyter_code>case_base=case_sec

fig, axs = plt.subplots(3,2, figsize=[6.4,7.1], sharey=True)#, constrained_layout=True)
var_xl = ['NUCLRATE','GR','H2SO4','SOA_LV','NCONC01','COAGNUCL']
lev_min=850.
_ds = ds_diff.sel(lev=slice(lev_min, None))
var_diff = 'NCONC01_'+case_base
xlims = {
    'NUCLRATE' : [1.e-6,10],
    'H2SO4' : [1.e-3,1],
    'SOA_LV' : [1.e-5,1],
    'GR' : [1.e-3,1],
    'N_AER':[1e0,1e4],
    'NCONC01':[10,5e3],
    'COAGNUCL':[1e-4,1],
}

stit = _plt_tmp(_ds,axs,var_xl, var_diff, xlims, ylim=[10,5e3], yscale='log', case_base=case_base)
uni = var_info.get_fancy_unit_xr(_ds[var_diff], var_diff)
fvar_diff = get_fancy_var_name('NCONC01')
for ax in axs[:,0]:
    print('hey')
    ax.set_ylabel(f'{fvar_diff} [{uni}]')

    
suptit =f'{fvar_diff}$(m)$ vs. $X(m)$ \n for $m=${get_nice_name_case(case_base)}'
fig.subplots_adjust(hspace=.5, wspace=0.1)#,top=0.8, )
stit = fig.suptitle(suptit,  fontsize=12, y=.98)

fn = plot_path + f'2dhist_abs{case_base}.'
#fig.savefig(fn+'pdf',bbox_extra_artists=(stit,), bbox_inches='tight')
#fig.savefig(fn+'png',bbox_extra_artists=(stit,), bbox_inches='tight')
plt.show()
print(fn)<jupyter_output>NUCLRATE
[1e-06, 10]
[10, 5000.0]
set log scale
GR
[0.001, 1]
[10, 5000.0]
set log scale
H2SO4
[0.001, 1]
[10, 5000.0]
set log scale
SOA_LV
[1e-05, 1]
[10, 5000.0]
set log scale
NCONC01
[10, 5000.0]
[10, 5000.0]
set log scale
COAGNUCL
[0.0001, 1]
[10, 5000.0]
set log scale
hey
hey
hey<jupyter_text>above 850.  Case: OsloAero_imp<jupyter_code>case_base=case_orig

fig, axs = plt.subplots(3,2, figsize=[6.4,7.1], sharey=True)#, constrained_layout=True)
var_xl = ['NUCLRATE','GR','H2SO4','SOA_LV','NCONC01','COAGNUCL']
lev_min=850.
_ds = ds_diff.sel(lev=slice(None,lev_min))
var_diff = 'NCONC01_'+case_base
xlims = {
    'NUCLRATE' : [1.e-6,10],
    'H2SO4' : [1.e-3,1],
    'SOA_LV' : [1.e-5,1],
    'GR' : [1.e-3,1],
    'N_AER':[1e0,1e4],
    'NCONC01':[10,5e3],
    'COAGNUCL':[1e-4,1],
}

stit = _plt_tmp(_ds,axs,var_xl, var_diff, xlims, ylim=[10,5e3], yscale='log', case_base=case_base)
uni = var_info.get_fancy_unit_xr(_ds[var_diff], var_diff)
fvar_diff = get_fancy_var_name('NCONC01')
for ax in axs[:,0]:
    print('hey')
    ax.set_ylabel(f'{fvar_diff} [{uni}]')

    
suptit =f'{fvar_diff}$(m)$ vs. $X(m)$ \n for $m=${get_nice_name_case(case_base)}'
fig.subplots_adjust(hspace=.5, wspace=0.1)#,top=0.8, )
stit = fig.suptitle(suptit,  fontsize=12, y=.98)

fn = plot_path + f'2dhist_abs{case_base}.'
#fig.savefig(fn+'pdf',bbox_extra_artists=(stit,), bbox_inches='tight')
#fig.savefig(fn+'png',bbox_extra_artists=(stit,), bbox_inches='tight')
plt.show()
print(fn)<jupyter_output>NUCLRATE
[1e-06, 10]
[10, 5000.0]
set log scale
GR
[0.001, 1]
[10, 5000.0]
set log scale
H2SO4
[0.001, 1]
[10, 5000.0]
set log scale
SOA_LV
[1e-05, 1]
[10, 5000.0]
set log scale
NCONC01
[10, 5000.0]
[10, 5000.0]
set log scale
COAGNUCL
[0.0001, 1]
[10, 5000.0]
set log scale
hey
hey
hey<jupyter_text>Case: OsloAeroSec<jupyter_code>case_base=case_sec

fig, axs = plt.subplots(3,2, figsize=[6.4,7.1], sharey=True)#, constrained_layout=True)
var_xl = ['NUCLRATE','GR','H2SO4','SOA_LV','NCONC01','COAGNUCL']
lev_min=850.
#_ds = ds_diff.sel(lev=slice(lev_min, None))
_ds = ds_diff.sel(lev=slice(None,lev_min))

var_diff = 'NCONC01_'+case_base
xlims = {
    'NUCLRATE' : [1.e-6,10],
    'H2SO4' : [1.e-3,1],
    'SOA_LV' : [1.e-5,1],
    'GR' : [1.e-3,1],
    'N_AER':[1e0,1e4],
    'NCONC01':[10,5e3],
    'COAGNUCL':[1e-4,1],
}

stit = _plt_tmp(_ds,axs,var_xl, var_diff, xlims, ylim=[10,5e3], yscale='log', case_base=case_base)
uni = var_info.get_fancy_unit_xr(_ds[var_diff], var_diff)
fvar_diff = get_fancy_var_name('NCONC01')
for ax in axs[:,0]:
    print('hey')
    ax.set_ylabel(f'{fvar_diff} [{uni}]')

    
suptit =f'{fvar_diff}$(m)$ vs. $X(m)$ \n for $m=${get_nice_name_case(case_base)}'
fig.subplots_adjust(hspace=.5, wspace=0.1)#,top=0.8, )
stit = fig.suptitle(suptit,  fontsize=12, y=.98)

fn = plot_path + f'2dhist_abs{case_base}.'
#fig.savefig(fn+'pdf',bbox_extra_artists=(stit,), bbox_inches='tight')
#fig.savefig(fn+'png',bbox_extra_artists=(stit,), bbox_inches='tight')
plt.show()
print(fn)<jupyter_output>NUCLRATE
[1e-06, 10]
[10, 5000.0]
set log scale
GR
[0.001, 1]
[10, 5000.0]
set log scale
H2SO4
[0.001, 1]
[10, 5000.0]
set log scale
SOA_LV
[1e-05, 1]
[10, 5000.0]
set log scale
NCONC01
[10, 5000.0]
[10, 5000.0]
set log scale
COAGNUCL
[0.0001, 1]
[10, 5000.0]
set log scale
hey
hey
hey<jupyter_text>Mask by COAGNUCL<jupyter_code>gr = ds_diff['GR_' + case_orig]
coag = ds_diff['COAGNUCL_' + case_orig]
ma = (coag) > coag.quantile(.75)<jupyter_output><empty_output><jupyter_text>Case: OsloAero_imp<jupyter_code>case_base=case_orig

fig, axs = plt.subplots(3,2, figsize=[6.4,7.1], sharey=True)#, constrained_layout=True)
var_xl = ['NUCLRATE','GR','H2SO4','SOA_LV','NCONC01','COAGNUCL']
lev_min=850.
_ds = ds_diff.where(ma)#lev=slice(None,lev_min))
var_diff = 'NCONC01_'+case_base
xlims = {
    'NUCLRATE' : [1.e-6,10],
    'H2SO4' : [1.e-3,1],
    'SOA_LV' : [1.e-5,1],
    'GR' : [1.e-3,1],
    'N_AER':[1e0,1e4],
    'NCONC01':[10,5e3],
    'COAGNUCL':[1e-4,1],
}

stit = _plt_tmp(_ds,axs,var_xl, var_diff, xlims, ylim=[10,5e3], yscale='log', case_base=case_base)
uni = var_info.get_fancy_unit_xr(_ds[var_diff], var_diff)
fvar_diff = get_fancy_var_name('NCONC01')
for ax in axs[:,0]:
    print('hey')
    ax.set_ylabel(f'{fvar_diff} [{uni}]')

    
suptit =f'{fvar_diff}$(m)$ vs. $X(m)$ \n for $m=${get_nice_name_case(case_base)}'
fig.subplots_adjust(hspace=.5, wspace=0.1)#,top=0.8, )
stit = fig.suptitle(suptit,  fontsize=12, y=.98)

fn = plot_path + f'2dhist_abs{case_base}.'
#fig.savefig(fn+'pdf',bbox_extra_artists=(stit,), bbox_inches='tight')
#fig.savefig(fn+'png',bbox_extra_artists=(stit,), bbox_inches='tight')
plt.show()
print(fn)<jupyter_output>NUCLRATE
[1e-06, 10]
[10, 5000.0]
set log scale
GR
[0.001, 1]
[10, 5000.0]
set log scale
H2SO4
[0.001, 1]
[10, 5000.0]
set log scale
SOA_LV
[1e-05, 1]
[10, 5000.0]
set log scale
NCONC01
[10, 5000.0]
[10, 5000.0]
set log scale
COAGNUCL
[0.0001, 1]
[10, 5000.0]
set log scale
hey
hey
hey<jupyter_text>Case: OsloAeroSec<jupyter_code>case_base=case_sec

fig, axs = plt.subplots(3,2, figsize=[6.4,7.1], sharey=True)#, constrained_layout=True)
var_xl = ['NUCLRATE','GR','H2SO4','SOA_LV','NCONC01','COAGNUCL']
lev_min=850.
#_ds = ds_diff.sel(lev=slice(lev_min, None))
_ds = ds_diff.where(ma)#lev=slice(None,lev_min))

var_diff = 'NCONC01_'+case_base
xlims = {
    'NUCLRATE' : [1.e-6,10],
    'H2SO4' : [1.e-3,1],
    'SOA_LV' : [1.e-5,1],
    'GR' : [1.e-3,1],
    'N_AER':[1e0,1e4],
    'NCONC01':[10,5e3],
    'COAGNUCL':[1e-4,1],
}

stit = _plt_tmp(_ds,axs,var_xl, var_diff, xlims, ylim=[10,5e3], yscale='log', case_base=case_base)
uni = var_info.get_fancy_unit_xr(_ds[var_diff], var_diff)
fvar_diff = get_fancy_var_name('NCONC01')
for ax in axs[:,0]:
    print('hey')
    ax.set_ylabel(f'{fvar_diff} [{uni}]')

    
suptit =f'{fvar_diff}$(m)$ vs. $X(m)$ \n for $m=${get_nice_name_case(case_base)}'
fig.subplots_adjust(hspace=.5, wspace=0.1)#,top=0.8, )
stit = fig.suptitle(suptit,  fontsize=12, y=.98)

fn = plot_path + f'2dhist_abs{case_base}.'
#fig.savefig(fn+'pdf',bbox_extra_artists=(stit,), bbox_inches='tight')
#fig.savefig(fn+'png',bbox_extra_artists=(stit,), bbox_inches='tight')
plt.show()
print(fn)<jupyter_output>NUCLRATE
[1e-06, 10]
[10, 5000.0]
set log scale
GR
[0.001, 1]
[10, 5000.0]
set log scale
H2SO4
[0.001, 1]
[10, 5000.0]
set log scale
SOA_LV
[1e-05, 1]
[10, 5000.0]
set log scale
NCONC01
[10, 5000.0]
[10, 5000.0]
set log scale
COAGNUCL
[0.0001, 1]
[10, 5000.0]
set log scale
hey
hey
hey<jupyter_text>lowest 50 %<jupyter_code>gr = ds_diff['GR_' + case_orig]
coag = ds_diff['COAGNUCL_' + case_orig]
ma = (coag) < coag.quantile(.75)<jupyter_output><empty_output><jupyter_text>Case: OsloAero_imp<jupyter_code>case_base=case_orig

fig, axs = plt.subplots(3,2, figsize=[6.4,7.1], sharey=True)#, constrained_layout=True)
var_xl = ['NUCLRATE','GR','H2SO4','SOA_LV','NCONC01','COAGNUCL']
lev_min=850.
_ds = ds_diff.where(ma)#lev=slice(None,lev_min))
var_diff = 'NCONC01_'+case_base
xlims = {
    'NUCLRATE' : [1.e-6,10],
    'H2SO4' : [1.e-3,1],
    'SOA_LV' : [1.e-5,1],
    'GR' : [1.e-3,1],
    'N_AER':[1e0,1e4],
    'NCONC01':[10,5e3],
    'COAGNUCL':[1e-4,1],
}

stit = _plt_tmp(_ds,axs,var_xl, var_diff, xlims, ylim=[10,5e3], yscale='log', case_base=case_base)
uni = var_info.get_fancy_unit_xr(_ds[var_diff], var_diff)
fvar_diff = get_fancy_var_name('NCONC01')
for ax in axs[:,0]:
    print('hey')
    ax.set_ylabel(f'{fvar_diff} [{uni}]')

    
suptit =f'{fvar_diff}$(m)$ vs. $X(m)$ \n for $m=${get_nice_name_case(case_base)}'
fig.subplots_adjust(hspace=.5, wspace=0.1)#,top=0.8, )
stit = fig.suptitle(suptit,  fontsize=12, y=.98)

fn = plot_path + f'2dhist_abs{case_base}.'
#fig.savefig(fn+'pdf',bbox_extra_artists=(stit,), bbox_inches='tight')
#fig.savefig(fn+'png',bbox_extra_artists=(stit,), bbox_inches='tight')
plt.show()
print(fn)<jupyter_output>NUCLRATE
[1e-06, 10]
[10, 5000.0]
set log scale
GR
[0.001, 1]
[10, 5000.0]
set log scale
H2SO4
[0.001, 1]
[10, 5000.0]
set log scale
SOA_LV
[1e-05, 1]
[10, 5000.0]
set log scale
NCONC01
[10, 5000.0]
[10, 5000.0]
set log scale
COAGNUCL
[0.0001, 1]
[10, 5000.0]
set log scale
hey
hey
hey<jupyter_text>Case: OsloAeroSec<jupyter_code>case_base=case_sec

fig, axs = plt.subplots(3,2, figsize=[6.4,7.1], sharey=True)#, constrained_layout=True)
var_xl = ['NUCLRATE','GR','H2SO4','SOA_LV','NCONC01','COAGNUCL']
lev_min=850.
#_ds = ds_diff.sel(lev=slice(lev_min, None))
_ds = ds_diff.where(ma)#lev=slice(None,lev_min))

var_diff = 'NCONC01_'+case_base
xlims = {
    'NUCLRATE' : [1.e-6,10],
    'H2SO4' : [1.e-3,1],
    'SOA_LV' : [1.e-5,1],
    'GR' : [1.e-3,1],
    'N_AER':[1e0,1e4],
    'NCONC01':[10,5e3],
    'COAGNUCL':[1e-4,1],
}

stit = _plt_tmp(_ds,axs,var_xl, var_diff, xlims, ylim=[10,5e3], yscale='log', case_base=case_base)
uni = var_info.get_fancy_unit_xr(_ds[var_diff], var_diff)
fvar_diff = get_fancy_var_name('NCONC01')
for ax in axs[:,0]:
    print('hey')
    ax.set_ylabel(f'{fvar_diff} [{uni}]')

    
suptit =f'{fvar_diff}$(m)$ vs. $X(m)$ \n for $m=${get_nice_name_case(case_base)}'
fig.subplots_adjust(hspace=.5, wspace=0.1)#,top=0.8, )
stit = fig.suptitle(suptit,  fontsize=12, y=.98)

fn = plot_path + f'2dhist_abs{case_base}.'
#fig.savefig(fn+'pdf',bbox_extra_artists=(stit,), bbox_inches='tight')
#fig.savefig(fn+'png',bbox_extra_artists=(stit,), bbox_inches='tight')
plt.show()
print(fn)<jupyter_output>NUCLRATE
[1e-06, 10]
[10, 5000.0]
set log scale
GR
[0.001, 1]
[10, 5000.0]
set log scale
H2SO4
[0.001, 1]
[10, 5000.0]
set log scale
SOA_LV
[1e-05, 1]
[10, 5000.0]
set log scale
NCONC01
[10, 5000.0]
[10, 5000.0]
set log scale
COAGNUCL
[0.0001, 1]
[10, 5000.0]
set log scale
hey
hey
hey
{'fraction_non_alphanumeric': 0.20860836833778845, 'fraction_numerical': 0.09142981834051607, 'mean_word_length': 5.710102489019033, 'pattern_counts': {'":': 0, '<': 50, '<?xml version=': 0, '>': 50, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '15', 'dir': 'jupyter-structured-clean-dedup', 'id': '416234', 'license': 'CC0-1.0', 'n_tokens_mistral': 10286, 'n_tokens_neox': 9264, 'n_words': 1450, 'path': 'oas_dev/notebooks/global_comparisons/04_2d_rels/04-01_2d_histograms_abs.ipynb', 'repo_name': 'sarambl/OAS-DEV', 'size': '18331'}