Referring to matplotlib issue 1521