Commit fe6c8e31 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

Merge branch 'log_norms_plotting' into 'NIFTy_5'

Add support for normalized colorbars

See merge request ift/nifty-dev!68
parents b8dbbbfa 13634f24
......@@ -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]],
vmax=kwargs.get("zmax"), cmap=cmap, origin="lower")
vmax=kwargs.get("zmax"), cmap=cmap, origin="lower",
# 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