{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/10977","repository_url":"https://api.github.com/repos/matplotlib/matplotlib","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/10977/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/10977/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/10977/events","html_url":"https://github.com/matplotlib/matplotlib/issues/10977","id":312113458,"number":10977,"title":"Unable to 'savefig.bbox' variable in mpl.rcParams (mpl v2.2.2)","user":{"login":"nmiles2718","id":20194427,"avatar_url":"https://avatars0.githubusercontent.com/u/20194427?v=4","gravatar_id":"","url":"https://api.github.com/users/nmiles2718","html_url":"https://github.com/nmiles2718","followers_url":"https://api.github.com/users/nmiles2718/followers","following_url":"https://api.github.com/users/nmiles2718/following{/other_user}","gists_url":"https://api.github.com/users/nmiles2718/gists{/gist_id}","starred_url":"https://api.github.com/users/nmiles2718/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmiles2718/subscriptions","organizations_url":"https://api.github.com/users/nmiles2718/orgs","repos_url":"https://api.github.com/users/nmiles2718/repos","events_url":"https://api.github.com/users/nmiles2718/events{/privacy}","received_events_url":"https://api.github.com/users/nmiles2718/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-06T20:50:27Z","updated_at":"2018-04-06T21:37:18Z","closed_at":null,"author_association":"NONE","body":"\r\nI have been working on some code to create a gif using images stored in FITS format with matplotlib ([animated_fits](https://github.com/nmiles2718/animated_fits)). It has been working fine without a hitch and I have even been able to incorporate pngs with `pillow`. I use the pipe-based writer, `imagemagick`, to save the animations as a gif but this requires the following changes to be made to the `savefig.bbox` parameter:\r\n```python\r\nmpl.rcParams['savefig.bbox'] = 'standard'\r\n```\r\n\r\nFor some reason, I am unable to make changes to this parameter in v2.2.2. \r\n\r\n```python\r\nPython 3.5.5 |Anaconda, Inc.| (default, Mar 12 2018, 16:25:05) \r\nType 'copyright', 'credits' or 'license' for more information\r\nIPython 6.3.0 -- An enhanced Interactive Python. Type '?' for help.\r\n\r\nIn [1]: import matplotlib as mpl\r\n\r\nIn [2]: print(mpl.rcParams['savefig.format'], type(mpl.rcParams['savefig.format']))\r\npng <class 'str'>\r\n\r\nIn [3]: mpl.rcParams['savefig.format']='jpg'\r\n\r\nIn [4]: print(mpl.rcParams['savefig.format'], type(mpl.rcParams['savefig.format']))\r\njpg <class 'str'>\r\n\r\nIn [5]: print(mpl.rcParams['savefig.bbox'], type(mpl.rcParams['savefig.bbox']))\r\nNone <class 'NoneType'>\r\n\r\nIn [6]: mpl.rcParams['savefig.bbox']='standard'\r\n\r\nIn [7]: print(mpl.rcParams['savefig.bbox'], type(mpl.rcParams['savefig.bbox']))\r\nNone <class 'NoneType'>\r\n\r\nIn [8]: 'savefig.bbox' in mpl.rcParams.keys()\r\nOut[8]: True\r\n```\r\n\r\nWhat is even weirder is that if I open the matplotlibrc file (`mpl.matplotlib_fname()`) I find that the value for `savefig.bbox` is correctly set!\r\n```\r\n#savefig.dpi         : figure   ## figure dots per inch or 'figure'\r\n#savefig.facecolor   : w        ## figure facecolor when saving\r\n#savefig.edgecolor   : w        ## figure edgecolor when saving\r\n#savefig.format      : png      ## png, ps, pdf, svg\r\n#savefig.bbox        : standard ## 'tight' or 'standard'.\r\n```\r\n\r\nSo it would appear that something is actively setting the value of `savefig.bbox` to `None`. Anyone have any idea what's going on here or what I am doing wrong? Any and all help is appreciated!\r\n\r\n**Expected outcome**\r\n\r\n```python\r\nPython 3.5.5 |Anaconda, Inc.| (default, Mar 12 2018, 16:25:05) \r\nType 'copyright', 'credits' or 'license' for more information\r\nIPython 6.3.0 -- An enhanced Interactive Python. Type '?' for help.\r\n\r\nIn [1]: import matplotlib as mpl\r\n\r\nIn [2]: print(mpl.rcParams['savefig.bbox'], type(mpl.rcParams['savefig.bbox'])).\r\nNone <class 'NoneType'>\r\n\r\nIn [3]: mpl.rcParams['savefig.bbox']='standard'\r\n\r\nIn [4]: print(mpl.rcParams['savefig.bbox'], type(mpl.rcParams['savefig.bbox']))\r\nstandard <class 'str'>\r\n\r\n```\r\n\r\n**Version Info**\r\n  * Operating system: Mac OSX El Capitan (v10.11.6)\r\n  * Matplotlib version: v2.2.2\r\n  * Matplotlib backend (`print(matplotlib.get_backend())`): Mac OSX\r\n  * Python version: v3.5.5\r\n\r\nAll of the packages were installed using [Astroconda Channel](http://astroconda.readthedocs.io/en/latest/)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/379389599","html_url":"https://github.com/matplotlib/matplotlib/issues/10977#issuecomment-379389599","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/10977","id":379389599,"user":{"login":"jklymak","id":1562854,"avatar_url":"https://avatars0.githubusercontent.com/u/1562854?v=4","gravatar_id":"","url":"https://api.github.com/users/jklymak","html_url":"https://github.com/jklymak","followers_url":"https://api.github.com/users/jklymak/followers","following_url":"https://api.github.com/users/jklymak/following{/other_user}","gists_url":"https://api.github.com/users/jklymak/gists{/gist_id}","starred_url":"https://api.github.com/users/jklymak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jklymak/subscriptions","organizations_url":"https://api.github.com/users/jklymak/orgs","repos_url":"https://api.github.com/users/jklymak/repos","events_url":"https://api.github.com/users/jklymak/events{/privacy}","received_events_url":"https://api.github.com/users/jklymak/received_events","type":"User","site_admin":false},"created_at":"2018-04-06T21:37:18Z","updated_at":"2018-04-06T21:37:18Z","author_association":"CONTRIBUTOR","body":"... and the fact that it's `None` later means that worked.  So presumably the garbling is being caused by something else.  "}}
{"actor":{"display_login":"jklymak"}}