Handle DOLFIN_NOPLOT in demo using Matplotlib