"""Python 3.14; numpy and matplotlib. Output is written in the current directory.""" from pathlib import Path import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt x=np.linspace(-1,1,501);y=np.linspace(-1,1,501);X,Y=np.meshgrid(x,y) U=np.where(Y<0,-2*np.cos(np.pi*X)*np.sin(np.pi*Y),0.) U=np.ma.masked_where(Y