matplotlib.hh: support "from ... import ..." for matplotlib.
matplotlib-function.hh: treat outputSize == 1 case separately.