Solved by ptrblck in post #2 
              
              
                This seems to be a matplotlib-specific question so I would recommend to post it on StackOverflow, where you would probably get a faster and better answer.