Vectorized plotting and numerical utilities