Contour correction + unit uG
This commit is contained in:
+7
-4
@@ -500,6 +500,7 @@ class Plotter(Aggregator, BaseProcessor):
|
||||
lw=None,
|
||||
lvl_th=None,
|
||||
lvl_max_lbl=np.inf,
|
||||
lvl_offset=0,
|
||||
lbl_fmt="%g",
|
||||
**kwargs,
|
||||
):
|
||||
@@ -532,10 +533,13 @@ class Plotter(Aggregator, BaseProcessor):
|
||||
levels=lvl_array,
|
||||
**kwargs,
|
||||
)
|
||||
# used levels
|
||||
lvls = np.array(cont.levels) + lvl_offset
|
||||
cont.levels = lvls
|
||||
|
||||
P.clabel(
|
||||
cont,
|
||||
lvl_array[lvl_array < lvl_max_lbl],
|
||||
lvls[np.array(lvls) < lvl_max_lbl],
|
||||
inline=1,
|
||||
fontsize=8.0,
|
||||
fmt=lbl_fmt,
|
||||
@@ -550,6 +554,7 @@ class Plotter(Aggregator, BaseProcessor):
|
||||
im_extent,
|
||||
"levels",
|
||||
lbl_fmt="%1d",
|
||||
lvl_offset=1,
|
||||
lvl_th=8,
|
||||
lvl_max_lbl=11,
|
||||
**kwargs,
|
||||
@@ -669,7 +674,6 @@ class Plotter(Aggregator, BaseProcessor):
|
||||
if ytransform is not None:
|
||||
mean_bin = ytransform(mean_bin)
|
||||
|
||||
P.grid()
|
||||
P.xlabel(r"$r$")
|
||||
|
||||
if xlog:
|
||||
@@ -788,7 +792,6 @@ class Plotter(Aggregator, BaseProcessor):
|
||||
P.step(centers, values, where="mid", color=color, label=label, **kwargs)
|
||||
else:
|
||||
raise ValueError("kind must be 'bar' or 'step'")
|
||||
P.grid()
|
||||
|
||||
if not label is None:
|
||||
P.xlabel(xlabel)
|
||||
@@ -834,7 +837,7 @@ class Plotter(Aggregator, BaseProcessor):
|
||||
runs=None,
|
||||
yerr_kind="std",
|
||||
sigma_err=2.0,
|
||||
grid=True,
|
||||
grid=False,
|
||||
put_time=False,
|
||||
time_unit=cst.Myr,
|
||||
colors=None,
|
||||
|
||||
Reference in New Issue
Block a user