Apparently the 'use' method needs to be called before pyplot is imported.