"""Original spectrum-filter plot. Tested Python 3.14.4, NumPy 2.3.5, Matplotlib 3.10.7. Writes PNG basename to caller cwd; preserves MPLCONFIGDIR. """ import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import numpy as np x=np.linspace(0,12,2401) H=np.zeros_like(x) small=x<.08 H[small]=x[small]**2/10-x[small]**4/280+x[small]**6/15120 large=~small H[large]=1+3*np.cos(x[large])/x[large]**2-3*np.sin(x[large])/x[large]**3 sharp=(x>=np.pi).astype(float) improved=np.where(x','color':'#1767b3'},color='#1767b3') ax.set_xlim(0,12);ax.set_ylim(-.04,1.18) ax.set_xlabel(r'$x=kr$');ax.set_ylabel('Spectral weight') ax.set_title('Velocity increments attenuate large scales; they do not remove them',fontsize=12,pad=11) ax.grid(alpha=.16);ax.legend(loc='lower right',fontsize=9,framealpha=.97) fig.savefig('paper-73-structure-function-filter.png',dpi=100,facecolor='white',transparent=False) plt.close(fig)