Compatibility with older matplotlib