account for matplotlib toolbar changes between v1.1.1 and >=v1.2.0