Commit 3124afc0 authored by Reimar H Leike's avatar Reimar H Leike
Browse files

Merge branch 'NIFTy_5' into more_tests

parents b2871be2 fe6c8e31
......@@ -203,6 +203,9 @@ def _plot(f, ax, **kwargs):
if not isinstance(alpha, list):
alpha = [alpha]
foo = kwargs.pop("norm", None)
norm = {} if foo is None else {'norm': foo}
dom = dom[0]
ax.set_title(kwargs.pop("title", ""))
ax.set_xlabel(kwargs.pop("xlabel", ""))
......@@ -232,7 +235,8 @@ def _plot(f, ax, **kwargs):
im = ax.imshow(fld.to_global_data(),
extent=[xc[0], xc[-1], yc[0], yc[-1]],
vmin=kwargs.get("zmin"),
vmax=kwargs.get("zmax"), cmap=cmap, origin="lower")
vmax=kwargs.get("zmax"), cmap=cmap, origin="lower",
**norm)
# from mpl_toolkits.axes_grid1 import make_axes_locatable
# divider = make_axes_locatable(ax)
# cax = divider.append_axes("right", size="5%", pad=0.05)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment