"""Original sketch. Python 3.14, numpy 2.3, matplotlib 3.10. Output is a basename in caller CWD; caller MPLCONFIGDIR is preserved. """ import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt F=1.4 hf=4/(F+2)**2 uf=2*F/(F+2) xs=2*(F-1)/(F+2) x=np.linspace(-1.6,1.2,900) h=np.where(x<-1,1,np.where(x