@@ -0,0 +1,693 @@
+%22%22%22Search for the optimal %5BFmin; Fmax%5Dhz amplitude band.%22%22%22%0Aimport matplotlib.pyplot as plt%0A%0Afrom tensorpac import Pac, PacTriVec, PacSignals%0A%0Aplt.rc('text', usetex=True)%0Aplt.rc('font', family='serif')%0A%0Asf = 256.%0Adata, time = PacSignals(fpha=%5B5, 7%5D, famp=%5B60, 100%5D, noise=2, ndatasets=30,%0A                        npts=6000, sf=sf, dpha=10)%0A%0Atrif, tridx = PacTriVec(fstart=30, fend=160, fwidth=5)%0A%0Ap = Pac(idpac=(1, 0, 0), fpha=%5B5, 7%5D, famp=trif)%0Apac, _ = p.filterfit(sf, data, data, axis=1)%0A%0Ap.triplot(pac.mean(-1), trif, tridx, cmap='Spectral_r', rmaxis=True,%0A          title=r'Optimal $%5BFmin; Fmax%5D$hz band for amplitude')%0A# plt.savefig('triplot.png', dpi=600, bbox_inches='tight')%0Ap.show()%0A

Add trisearch example