Colab plotting problems

The same code does not work on Colab but works on binder.image .
I spent quite some time on trying to figure it out but i haven’t found the solution yet. Any ideas?

Colab does sometimes cause issues with installed versions of libraries.

You can try !pip install matplotlib==3.1.3