{"action":"created","comment":{"url":"https://api.github.com/repos/astropy/astropy/pulls/comments/90518637","pull_request_review_id":11038014,"id":90518637,"diff_hunk":"@@ -1,23 +1,21 @@\n # Licensed under a 3-clause BSD style license - see LICENSE.rst\n-\n-__doctest_requires__ = {'*': ['matplotlib']}\n-\n \"\"\" This module contains dictionaries that can be used to set a\n matplotlib plotting style.\n+\n It is mostly here to allow a consistent plotting style in tutorials,\n but can be used to prepare any matplotlib figure.\n \n-Using a matplotlib version > 1.4 you can do::\n+Using a matplotlib version >= 1.5 you can do::\n \n-    >>> import matplotlib.pyplot as plt\n-    >>> from astropy.visualization import astropy_mpl_style\n-    >>> plt.style.use(astropy_mpl_style)","path":"astropy/visualization/mpl_style.py","position":16,"original_position":16,"commit_id":"581f41363cccd0d006aba36a6d3fbd13c1469be2","original_commit_id":"581f41363cccd0d006aba36a6d3fbd13c1469be2","user":{"login":"MSeifert04","id":14200878,"avatar_url":"https://avatars.githubusercontent.com/u/14200878?v=3","gravatar_id":"","url":"https://api.github.com/users/MSeifert04","html_url":"https://github.com/MSeifert04","followers_url":"https://api.github.com/users/MSeifert04/followers","following_url":"https://api.github.com/users/MSeifert04/following{/other_user}","gists_url":"https://api.github.com/users/MSeifert04/gists{/gist_id}","starred_url":"https://api.github.com/users/MSeifert04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSeifert04/subscriptions","organizations_url":"https://api.github.com/users/MSeifert04/orgs","repos_url":"https://api.github.com/users/MSeifert04/repos","events_url":"https://api.github.com/users/MSeifert04/events{/privacy}","received_events_url":"https://api.github.com/users/MSeifert04/received_events","type":"User","site_admin":false},"body":"If I remember correctly there should be an indented block after `::`. \r\n\r\nI wouldn't rely on it working without indentation (see for example http://openalea.gforge.inria.fr/doc/openalea/doc/_build/html/source/sphinx/rest_syntax.html#inserting-code-and-literal-blocks)","created_at":"2016-12-01T19:27:56Z","updated_at":"2016-12-01T19:27:56Z","html_url":"https://github.com/astropy/astropy/pull/4140#discussion_r90518637","pull_request_url":"https://api.github.com/repos/astropy/astropy/pulls/4140","_links":{"self":{"href":"https://api.github.com/repos/astropy/astropy/pulls/comments/90518637"},"html":{"href":"https://github.com/astropy/astropy/pull/4140#discussion_r90518637"},"pull_request":{"href":"https://api.github.com/repos/astropy/astropy/pulls/4140"}}},"pull_request":{"url":"https://api.github.com/repos/astropy/astropy/pulls/4140","id":96043448,"html_url":"https://github.com/astropy/astropy/pull/4140","diff_url":"https://github.com/astropy/astropy/pull/4140.diff","patch_url":"https://github.com/astropy/astropy/pull/4140.patch","issue_url":"https://api.github.com/repos/astropy/astropy/issues/4140","number":4140,"state":"open","locked":false,"title":"Error trying to set astropy_mpl_style","user":{"login":"cdeil","id":852409,"avatar_url":"https://avatars.githubusercontent.com/u/852409?v=3","gravatar_id":"","url":"https://api.github.com/users/cdeil","html_url":"https://github.com/cdeil","followers_url":"https://api.github.com/users/cdeil/followers","following_url":"https://api.github.com/users/cdeil/following{/other_user}","gists_url":"https://api.github.com/users/cdeil/gists{/gist_id}","starred_url":"https://api.github.com/users/cdeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdeil/subscriptions","organizations_url":"https://api.github.com/users/cdeil/orgs","repos_url":"https://api.github.com/users/cdeil/repos","events_url":"https://api.github.com/users/cdeil/events{/privacy}","received_events_url":"https://api.github.com/users/cdeil/received_events","type":"User","site_admin":false},"body":"I tried to set the `astropy_mpl_style` as suggested here:\nhttps://github.com/astropy/astropy/blob/59cbe17ee75a34143bca38d064f561a075ca2099/astropy/visualization/mpl_style.py#L10\n\n``` python\nimport matplotlib.pyplot as plt\nfrom astropy.visualization import astropy_mpl_style\nplt.style.use(astropy_mpl_style)\n```\n\nWith matplotlib 1.4.3 and astropy master I'm getting this error:\n\n```\nPython 3.4.3 (default, Aug 18 2015, 21:38:53) \n[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n>>> import matplotlib.pyplot as plt\n>>> from astropy.visualization import astropy_mpl_style\n>>> plt.style.use(astropy_mpl_style)\nTraceback (most recent call last):\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/style/core.py\", line 60, in use\n    rc = rc_params_from_file(style, use_default_template=False)\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/__init__.py\", line 1069, in rc_params_from_file\n    config_from_file = _rc_params_in_file(fname, fail_on_error)\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/__init__.py\", line 996, in _rc_params_in_file\n    with _open_file_or_url(fname) as fd:\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/contextlib.py\", line 59, in __enter__\n    return next(self.gen)\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/__init__.py\", line 981, in _open_file_or_url\n    with open(fname) as f:\nFileNotFoundError: [Errno 2] No such file or directory: 'ytick.color'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"<stdin>\", line 1, in <module>\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/matplotlib/style/core.py\", line 66, in use\n    raise ValueError(msg % style)\nValueError: 'ytick.color' not found in the style library and input is not a valid URL or path. See `style.available` for list of available styles.\n```\n\nIs this a bug or an issue with my setup?\n","created_at":"2016-12-01T08:13:56Z","updated_at":"2016-12-01T19:27:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8455abbc094750c49a2b81100f75c46679723e54","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/astropy/astropy/milestones/38","html_url":"https://github.com/astropy/astropy/milestones/v1.3.0","labels_url":"https://api.github.com/repos/astropy/astropy/milestones/38/labels","id":1761583,"number":38,"title":"v1.3.0","description":"","creator":{"login":"eteq","id":346587,"avatar_url":"https://avatars.githubusercontent.com/u/346587?v=3","gravatar_id":"","url":"https://api.github.com/users/eteq","html_url":"https://github.com/eteq","followers_url":"https://api.github.com/users/eteq/followers","following_url":"https://api.github.com/users/eteq/following{/other_user}","gists_url":"https://api.github.com/users/eteq/gists{/gist_id}","starred_url":"https://api.github.com/users/eteq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eteq/subscriptions","organizations_url":"https://api.github.com/users/eteq/orgs","repos_url":"https://api.github.com/users/eteq/repos","events_url":"https://api.github.com/users/eteq/events{/privacy}","received_events_url":"https://api.github.com/users/eteq/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":122,"state":"open","created_at":"2016-05-12T04:39:02Z","updated_at":"2016-12-01T18:38:44Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/astropy/astropy/pulls/4140/commits","review_comments_url":"https://api.github.com/repos/astropy/astropy/pulls/4140/comments","review_comment_url":"https://api.github.com/repos/astropy/astropy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/4140/comments","statuses_url":"https://api.github.com/repos/astropy/astropy/statuses/581f41363cccd0d006aba36a6d3fbd13c1469be2","head":{"label":"cdeil:issue-4140","ref":"issue-4140","sha":"581f41363cccd0d006aba36a6d3fbd13c1469be2","user":{"login":"cdeil","id":852409,"avatar_url":"https://avatars.githubusercontent.com/u/852409?v=3","gravatar_id":"","url":"https://api.github.com/users/cdeil","html_url":"https://github.com/cdeil","followers_url":"https://api.github.com/users/cdeil/followers","following_url":"https://api.github.com/users/cdeil/following{/other_user}","gists_url":"https://api.github.com/users/cdeil/gists{/gist_id}","starred_url":"https://api.github.com/users/cdeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdeil/subscriptions","organizations_url":"https://api.github.com/users/cdeil/orgs","repos_url":"https://api.github.com/users/cdeil/repos","events_url":"https://api.github.com/users/cdeil/events{/privacy}","received_events_url":"https://api.github.com/users/cdeil/received_events","type":"User","site_admin":false},"repo":{"id":2844165,"name":"astropy","full_name":"cdeil/astropy","owner":{"login":"cdeil","id":852409,"avatar_url":"https://avatars.githubusercontent.com/u/852409?v=3","gravatar_id":"","url":"https://api.github.com/users/cdeil","html_url":"https://github.com/cdeil","followers_url":"https://api.github.com/users/cdeil/followers","following_url":"https://api.github.com/users/cdeil/following{/other_user}","gists_url":"https://api.github.com/users/cdeil/gists{/gist_id}","starred_url":"https://api.github.com/users/cdeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdeil/subscriptions","organizations_url":"https://api.github.com/users/cdeil/orgs","repos_url":"https://api.github.com/users/cdeil/repos","events_url":"https://api.github.com/users/cdeil/events{/privacy}","received_events_url":"https://api.github.com/users/cdeil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cdeil/astropy","description":"Main AstroPy repository","fork":true,"url":"https://api.github.com/repos/cdeil/astropy","forks_url":"https://api.github.com/repos/cdeil/astropy/forks","keys_url":"https://api.github.com/repos/cdeil/astropy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cdeil/astropy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cdeil/astropy/teams","hooks_url":"https://api.github.com/repos/cdeil/astropy/hooks","issue_events_url":"https://api.github.com/repos/cdeil/astropy/issues/events{/number}","events_url":"https://api.github.com/repos/cdeil/astropy/events","assignees_url":"https://api.github.com/repos/cdeil/astropy/assignees{/user}","branches_url":"https://api.github.com/repos/cdeil/astropy/branches{/branch}","tags_url":"https://api.github.com/repos/cdeil/astropy/tags","blobs_url":"https://api.github.com/repos/cdeil/astropy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cdeil/astropy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cdeil/astropy/git/refs{/sha}","trees_url":"https://api.github.com/repos/cdeil/astropy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cdeil/astropy/statuses/{sha}","languages_url":"https://api.github.com/repos/cdeil/astropy/languages","stargazers_url":"https://api.github.com/repos/cdeil/astropy/stargazers","contributors_url":"https://api.github.com/repos/cdeil/astropy/contributors","subscribers_url":"https://api.github.com/repos/cdeil/astropy/subscribers","subscription_url":"https://api.github.com/repos/cdeil/astropy/subscription","commits_url":"https://api.github.com/repos/cdeil/astropy/commits{/sha}","git_commits_url":"https://api.github.com/repos/cdeil/astropy/git/commits{/sha}","comments_url":"https://api.github.com/repos/cdeil/astropy/comments{/number}","issue_comment_url":"https://api.github.com/repos/cdeil/astropy/issues/comments{/number}","contents_url":"https://api.github.com/repos/cdeil/astropy/contents/{+path}","compare_url":"https://api.github.com/repos/cdeil/astropy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cdeil/astropy/merges","archive_url":"https://api.github.com/repos/cdeil/astropy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cdeil/astropy/downloads","issues_url":"https://api.github.com/repos/cdeil/astropy/issues{/number}","pulls_url":"https://api.github.com/repos/cdeil/astropy/pulls{/number}","milestones_url":"https://api.github.com/repos/cdeil/astropy/milestones{/number}","notifications_url":"https://api.github.com/repos/cdeil/astropy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cdeil/astropy/labels{/name}","releases_url":"https://api.github.com/repos/cdeil/astropy/releases{/id}","deployments_url":"https://api.github.com/repos/cdeil/astropy/deployments","created_at":"2011-11-24T15:11:07Z","updated_at":"2014-07-21T19:57:03Z","pushed_at":"2016-12-01T17:09:07Z","git_url":"git://github.com/cdeil/astropy.git","ssh_url":"git@github.com:cdeil/astropy.git","clone_url":"https://github.com/cdeil/astropy.git","svn_url":"https://github.com/cdeil/astropy","homepage":"astropy.org","size":47359,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"astropy:master","ref":"master","sha":"2a965008232bfad410a2586a58374faa2fe05ce1","user":{"login":"astropy","id":847984,"avatar_url":"https://avatars.githubusercontent.com/u/847984?v=3","gravatar_id":"","url":"https://api.github.com/users/astropy","html_url":"https://github.com/astropy","followers_url":"https://api.github.com/users/astropy/followers","following_url":"https://api.github.com/users/astropy/following{/other_user}","gists_url":"https://api.github.com/users/astropy/gists{/gist_id}","starred_url":"https://api.github.com/users/astropy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astropy/subscriptions","organizations_url":"https://api.github.com/users/astropy/orgs","repos_url":"https://api.github.com/users/astropy/repos","events_url":"https://api.github.com/users/astropy/events{/privacy}","received_events_url":"https://api.github.com/users/astropy/received_events","type":"Organization","site_admin":false},"repo":{"id":2081289,"name":"astropy","full_name":"astropy/astropy","owner":{"login":"astropy","id":847984,"avatar_url":"https://avatars.githubusercontent.com/u/847984?v=3","gravatar_id":"","url":"https://api.github.com/users/astropy","html_url":"https://github.com/astropy","followers_url":"https://api.github.com/users/astropy/followers","following_url":"https://api.github.com/users/astropy/following{/other_user}","gists_url":"https://api.github.com/users/astropy/gists{/gist_id}","starred_url":"https://api.github.com/users/astropy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astropy/subscriptions","organizations_url":"https://api.github.com/users/astropy/orgs","repos_url":"https://api.github.com/users/astropy/repos","events_url":"https://api.github.com/users/astropy/events{/privacy}","received_events_url":"https://api.github.com/users/astropy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/astropy/astropy","description":"Repository for the Astropy core package","fork":false,"url":"https://api.github.com/repos/astropy/astropy","forks_url":"https://api.github.com/repos/astropy/astropy/forks","keys_url":"https://api.github.com/repos/astropy/astropy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/astropy/astropy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/astropy/astropy/teams","hooks_url":"https://api.github.com/repos/astropy/astropy/hooks","issue_events_url":"https://api.github.com/repos/astropy/astropy/issues/events{/number}","events_url":"https://api.github.com/repos/astropy/astropy/events","assignees_url":"https://api.github.com/repos/astropy/astropy/assignees{/user}","branches_url":"https://api.github.com/repos/astropy/astropy/branches{/branch}","tags_url":"https://api.github.com/repos/astropy/astropy/tags","blobs_url":"https://api.github.com/repos/astropy/astropy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/astropy/astropy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/astropy/astropy/git/refs{/sha}","trees_url":"https://api.github.com/repos/astropy/astropy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/astropy/astropy/statuses/{sha}","languages_url":"https://api.github.com/repos/astropy/astropy/languages","stargazers_url":"https://api.github.com/repos/astropy/astropy/stargazers","contributors_url":"https://api.github.com/repos/astropy/astropy/contributors","subscribers_url":"https://api.github.com/repos/astropy/astropy/subscribers","subscription_url":"https://api.github.com/repos/astropy/astropy/subscription","commits_url":"https://api.github.com/repos/astropy/astropy/commits{/sha}","git_commits_url":"https://api.github.com/repos/astropy/astropy/git/commits{/sha}","comments_url":"https://api.github.com/repos/astropy/astropy/comments{/number}","issue_comment_url":"https://api.github.com/repos/astropy/astropy/issues/comments{/number}","contents_url":"https://api.github.com/repos/astropy/astropy/contents/{+path}","compare_url":"https://api.github.com/repos/astropy/astropy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/astropy/astropy/merges","archive_url":"https://api.github.com/repos/astropy/astropy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/astropy/astropy/downloads","issues_url":"https://api.github.com/repos/astropy/astropy/issues{/number}","pulls_url":"https://api.github.com/repos/astropy/astropy/pulls{/number}","milestones_url":"https://api.github.com/repos/astropy/astropy/milestones{/number}","notifications_url":"https://api.github.com/repos/astropy/astropy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/astropy/astropy/labels{/name}","releases_url":"https://api.github.com/repos/astropy/astropy/releases{/id}","deployments_url":"https://api.github.com/repos/astropy/astropy/deployments","created_at":"2011-07-21T01:33:49Z","updated_at":"2016-12-01T02:52:01Z","pushed_at":"2016-12-01T17:09:18Z","git_url":"git://github.com/astropy/astropy.git","ssh_url":"git@github.com:astropy/astropy.git","clone_url":"https://github.com/astropy/astropy.git","svn_url":"https://github.com/astropy/astropy","homepage":"www.astropy.org","size":70046,"stargazers_count":1059,"watchers_count":1059,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":614,"mirror_url":null,"open_issues_count":790,"forks":614,"open_issues":790,"watchers":1059,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/astropy/astropy/pulls/4140"},"html":{"href":"https://github.com/astropy/astropy/pull/4140"},"issue":{"href":"https://api.github.com/repos/astropy/astropy/issues/4140"},"comments":{"href":"https://api.github.com/repos/astropy/astropy/issues/4140/comments"},"review_comments":{"href":"https://api.github.com/repos/astropy/astropy/pulls/4140/comments"},"review_comment":{"href":"https://api.github.com/repos/astropy/astropy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/astropy/astropy/pulls/4140/commits"},"statuses":{"href":"https://api.github.com/repos/astropy/astropy/statuses/581f41363cccd0d006aba36a6d3fbd13c1469be2"}}}}
{"actor":{"display_login":"MSeifert04"}}