matplotlib/matplotlib — pull request #3710 by FlorianRhiem (2014-10-23 15:13:52+00:00)
Title: allow selecting the backend by setting the environment variable MPL_BACKEND

This commit adds a new way of selecting the matplotlib backend. The `-d` flag can cause problems with scripts that use the command line arguments as parameters and don't ignore unknown ones. An environment variable `MPL_BACKEND` can be set by the user (or in the code) and is far less likely to cause problems than using the `-d` flag.