modifying quadrature.py for plotting