def test_15(self): plot.config_notebook_plotting() assert (plot.plot.__name__ == 'plot_wrap')
from __future__ import print_function from builtins import input from builtins import range import pyfftw # See https://github.com/pyFFTW/pyFFTW/issues/40 import numpy as np from sporco import util from sporco import plot plot.config_notebook_plotting() import sporco.linalg as spl import sporco.metric as sm from sporco.admm import cbpdn from sporco.admm import cbpdntv import matplotlib.image as mpimg def pad(x, n=8): if x.ndim == 2: return np.pad(x, n, mode='symmetric') else: return np.pad(x, ((n, n), (n, n), (0, 0)), mode='symmetric') def crop(x, n=8): return x[n:-n, n:-n] # img = util.ExampleImages().image('monarch.png', zoom=0.5, scaled=True,