Use matplotlib without UI.
Merge branch '1.0'