html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/pull/518#issuecomment-128503193,https://api.github.com/repos/pydata/xarray/issues/518,128503193,MDEyOklzc3VlQ29tbWVudDEyODUwMzE5Mw==,5356122,2015-08-06T20:46:42Z,2015-08-06T20:46:42Z,MEMBER,"```
In [1]: import matplotlib
In [2]: import matplotlib.pyplot
In [3]: matplotlib.use('Agg')
/Users/clark.fitzgerald/anaconda/envs/xray_dev/lib/python2.7/site-packages/matplotlib/__init__.py:1318: UserWarning: This call to matplotlib.use() has no effect
because the backend has already been chosen;
matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.
warnings.warn(_use_error_msg)
```
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,99513363
https://github.com/pydata/xarray/pull/518#issuecomment-128502431,https://api.github.com/repos/pydata/xarray/issues/518,128502431,MDEyOklzc3VlQ29tbWVudDEyODUwMjQzMQ==,5356122,2015-08-06T20:43:19Z,2015-08-06T20:43:19Z,MEMBER,"But really if people need to use a particular backend (like in our case) they should be setting it in the first place. Seaborn doesn't go beyond what `pyplot` does here, so I think it's ok.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,99513363
https://github.com/pydata/xarray/pull/518#issuecomment-128502013,https://api.github.com/repos/pydata/xarray/issues/518,128502013,MDEyOklzc3VlQ29tbWVudDEyODUwMjAxMw==,5356122,2015-08-06T20:41:19Z,2015-08-06T20:41:19Z,MEMBER,"Yes, this is a little tricky. Internally Seaborn uses lots of `pyplot`. And importing `pyplot` sets the backend. So maybe they could try something like [pyplot.switch_backend](http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.switch_backend) within their `reset_orig` function?
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,99513363
https://github.com/pydata/xarray/pull/518#issuecomment-128494659,https://api.github.com/repos/pydata/xarray/issues/518,128494659,MDEyOklzc3VlQ29tbWVudDEyODQ5NDY1OQ==,5356122,2015-08-06T20:15:57Z,2015-08-06T20:15:57Z,MEMBER,"Explanation-
Looks like the backend is set when Seaborn is imported. When building the docs we don't want to use an interactive [backend](http://matplotlib.org/faq/usage_faq.html#what-is-a-backend).
```
(xray_dev)testimage ~/dev/xray/doc $ ipython
Python 2.7.10 |Continuum Analytics, Inc.| (default, May 28 2015, 17:04:42)
...
In [1]: import seaborn
In [2]: import matplotlib
In [3]: matplotlib.use('Agg')
/Users/clark.fitzgerald/anaconda/envs/xray_dev/lib/python2.7/site-packages/matplotlib/__init__.py:1318: UserWarning: This call to matplotlib.use() has no effect
because the backend has already been chosen;
matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.
warnings.warn(_use_error_msg)
```
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,99513363