{"action":"created","comment":{"url":"https://api.github.com/repos/nipy/PySurfer/pulls/comments/25569211","id":25569211,"diff_hunk":"@@ -12,7 +12,17 @@ have to delve into the underlying engine to get a different look.\n Changing the display background\n -------------------------------\n \n-The display background can take any valid matplotlib color.\n+The display background can take any valid matplotlib color (i.e.,\n+it can be a tuple of rgb values, an rgb hex string, or a named HTML\n+color.\n+\n+Changing the display size\n+-------------------------\n+\n+The default display window is 800px by 800px, but this is also\n+customizable. You can set the size of a square window with the ``size``\n+parameter or make a rectangular window with the ``width`` and ``height``","path":"doc/documentation/custom_viz.rst","position":14,"original_position":14,"commit_id":"7516de110a550e5b79969878ac61cbaae0e58fa7","original_commit_id":"7516de110a550e5b79969878ac61cbaae0e58fa7","user":{"login":"mwaskom","id":315810,"avatar_url":"https://avatars.githubusercontent.com/u/315810?v=3","gravatar_id":"","url":"https://api.github.com/users/mwaskom","html_url":"https://github.com/mwaskom","followers_url":"https://api.github.com/users/mwaskom/followers","following_url":"https://api.github.com/users/mwaskom/following{/other_user}","gists_url":"https://api.github.com/users/mwaskom/gists{/gist_id}","starred_url":"https://api.github.com/users/mwaskom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwaskom/subscriptions","organizations_url":"https://api.github.com/users/mwaskom/orgs","repos_url":"https://api.github.com/users/mwaskom/repos","events_url":"https://api.github.com/users/mwaskom/events{/privacy}","received_events_url":"https://api.github.com/users/mwaskom/received_events","type":"User","site_admin":false},"body":"I agree that in general it feels like a clunky API, and that just taking width and height is more common (although usually that's `size = (width, height)`, I feel like).","created_at":"2015-03-01T17:35:09Z","updated_at":"2015-03-01T17:35:09Z","html_url":"https://github.com/nipy/PySurfer/pull/121#discussion_r25569211","pull_request_url":"https://api.github.com/repos/nipy/PySurfer/pulls/121","_links":{"self":{"href":"https://api.github.com/repos/nipy/PySurfer/pulls/comments/25569211"},"html":{"href":"https://github.com/nipy/PySurfer/pull/121#discussion_r25569211"},"pull_request":{"href":"https://api.github.com/repos/nipy/PySurfer/pulls/121"}}},"pull_request":{"url":"https://api.github.com/repos/nipy/PySurfer/pulls/121","id":30234146,"html_url":"https://github.com/nipy/PySurfer/pull/121","diff_url":"https://github.com/nipy/PySurfer/pull/121.diff","patch_url":"https://github.com/nipy/PySurfer/pull/121.patch","issue_url":"https://api.github.com/repos/nipy/PySurfer/issues/121","number":121,"state":"open","locked":false,"title":"Remove config_opts and config file","user":{"login":"mwaskom","id":315810,"avatar_url":"https://avatars.githubusercontent.com/u/315810?v=3","gravatar_id":"","url":"https://api.github.com/users/mwaskom","html_url":"https://github.com/mwaskom","followers_url":"https://api.github.com/users/mwaskom/followers","following_url":"https://api.github.com/users/mwaskom/following{/other_user}","gists_url":"https://api.github.com/users/mwaskom/gists{/gist_id}","starred_url":"https://api.github.com/users/mwaskom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwaskom/subscriptions","organizations_url":"https://api.github.com/users/mwaskom/orgs","repos_url":"https://api.github.com/users/mwaskom/repos","events_url":"https://api.github.com/users/mwaskom/events{/privacy}","received_events_url":"https://api.github.com/users/mwaskom/received_events","type":"User","site_admin":false},"body":"This addresses #120\r\n\r\nValues that were previously selected using a ``config_opts`` dictionary in the ``Brain`` constructor are now keyword arguments. This should make it easier to use tab-completion in IPython, and will generally simplify your scripts. To ease transition, a ``config_opts`` argument will still be caught, and its entries will be used (overriding the keyword arguments), but it will be removed in a future release.\r\n\r\nThe ability to set default values in a config file has been removed. While convenient, this approach encourages code that is not fully reproducible. While existing code that was written expecting a config file will still run, the visualization will fall back to default values. These should be updated directly in your plotting scripts.\r\n\r\nWhile not directly related to these changes, this  PR also adds a new feature: the ``cortex`` keyword argument can now be a mayavi colormap name or a ``(colormap, min, max, reverse)`` tuple for full control.","created_at":"2015-03-01T00:35:18Z","updated_at":"2015-03-01T17:35:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d1e5b1924d64bdaf08f8e9a5391929620346082","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nipy/PySurfer/pulls/121/commits","review_comments_url":"https://api.github.com/repos/nipy/PySurfer/pulls/121/comments","review_comment_url":"https://api.github.com/repos/nipy/PySurfer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nipy/PySurfer/issues/121/comments","statuses_url":"https://api.github.com/repos/nipy/PySurfer/statuses/7516de110a550e5b79969878ac61cbaae0e58fa7","head":{"label":"mwaskom:remove_config_file","ref":"remove_config_file","sha":"7516de110a550e5b79969878ac61cbaae0e58fa7","user":{"login":"mwaskom","id":315810,"avatar_url":"https://avatars.githubusercontent.com/u/315810?v=3","gravatar_id":"","url":"https://api.github.com/users/mwaskom","html_url":"https://github.com/mwaskom","followers_url":"https://api.github.com/users/mwaskom/followers","following_url":"https://api.github.com/users/mwaskom/following{/other_user}","gists_url":"https://api.github.com/users/mwaskom/gists{/gist_id}","starred_url":"https://api.github.com/users/mwaskom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwaskom/subscriptions","organizations_url":"https://api.github.com/users/mwaskom/orgs","repos_url":"https://api.github.com/users/mwaskom/repos","events_url":"https://api.github.com/users/mwaskom/events{/privacy}","received_events_url":"https://api.github.com/users/mwaskom/received_events","type":"User","site_admin":false},"repo":{"id":2089580,"name":"PySurfer","full_name":"mwaskom/PySurfer","owner":{"login":"mwaskom","id":315810,"avatar_url":"https://avatars.githubusercontent.com/u/315810?v=3","gravatar_id":"","url":"https://api.github.com/users/mwaskom","html_url":"https://github.com/mwaskom","followers_url":"https://api.github.com/users/mwaskom/followers","following_url":"https://api.github.com/users/mwaskom/following{/other_user}","gists_url":"https://api.github.com/users/mwaskom/gists{/gist_id}","starred_url":"https://api.github.com/users/mwaskom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwaskom/subscriptions","organizations_url":"https://api.github.com/users/mwaskom/orgs","repos_url":"https://api.github.com/users/mwaskom/repos","events_url":"https://api.github.com/users/mwaskom/events{/privacy}","received_events_url":"https://api.github.com/users/mwaskom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mwaskom/PySurfer","description":"Python tools for Freesurfer","fork":true,"url":"https://api.github.com/repos/mwaskom/PySurfer","forks_url":"https://api.github.com/repos/mwaskom/PySurfer/forks","keys_url":"https://api.github.com/repos/mwaskom/PySurfer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mwaskom/PySurfer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mwaskom/PySurfer/teams","hooks_url":"https://api.github.com/repos/mwaskom/PySurfer/hooks","issue_events_url":"https://api.github.com/repos/mwaskom/PySurfer/issues/events{/number}","events_url":"https://api.github.com/repos/mwaskom/PySurfer/events","assignees_url":"https://api.github.com/repos/mwaskom/PySurfer/assignees{/user}","branches_url":"https://api.github.com/repos/mwaskom/PySurfer/branches{/branch}","tags_url":"https://api.github.com/repos/mwaskom/PySurfer/tags","blobs_url":"https://api.github.com/repos/mwaskom/PySurfer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mwaskom/PySurfer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mwaskom/PySurfer/git/refs{/sha}","trees_url":"https://api.github.com/repos/mwaskom/PySurfer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mwaskom/PySurfer/statuses/{sha}","languages_url":"https://api.github.com/repos/mwaskom/PySurfer/languages","stargazers_url":"https://api.github.com/repos/mwaskom/PySurfer/stargazers","contributors_url":"https://api.github.com/repos/mwaskom/PySurfer/contributors","subscribers_url":"https://api.github.com/repos/mwaskom/PySurfer/subscribers","subscription_url":"https://api.github.com/repos/mwaskom/PySurfer/subscription","commits_url":"https://api.github.com/repos/mwaskom/PySurfer/commits{/sha}","git_commits_url":"https://api.github.com/repos/mwaskom/PySurfer/git/commits{/sha}","comments_url":"https://api.github.com/repos/mwaskom/PySurfer/comments{/number}","issue_comment_url":"https://api.github.com/repos/mwaskom/PySurfer/issues/comments{/number}","contents_url":"https://api.github.com/repos/mwaskom/PySurfer/contents/{+path}","compare_url":"https://api.github.com/repos/mwaskom/PySurfer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mwaskom/PySurfer/merges","archive_url":"https://api.github.com/repos/mwaskom/PySurfer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mwaskom/PySurfer/downloads","issues_url":"https://api.github.com/repos/mwaskom/PySurfer/issues{/number}","pulls_url":"https://api.github.com/repos/mwaskom/PySurfer/pulls{/number}","milestones_url":"https://api.github.com/repos/mwaskom/PySurfer/milestones{/number}","notifications_url":"https://api.github.com/repos/mwaskom/PySurfer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mwaskom/PySurfer/labels{/name}","releases_url":"https://api.github.com/repos/mwaskom/PySurfer/releases{/id}","created_at":"2011-07-22T16:39:12Z","updated_at":"2015-02-27T01:35:58Z","pushed_at":"2015-03-01T00:32:36Z","git_url":"git://github.com/mwaskom/PySurfer.git","ssh_url":"git@github.com:mwaskom/PySurfer.git","clone_url":"https://github.com/mwaskom/PySurfer.git","svn_url":"https://github.com/mwaskom/PySurfer","homepage":"","size":12661,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"nipy:master","ref":"master","sha":"4e0165ba854b4c1f111960be896bebeab28f4e9c","user":{"login":"nipy","id":233707,"avatar_url":"https://avatars.githubusercontent.com/u/233707?v=3","gravatar_id":"","url":"https://api.github.com/users/nipy","html_url":"https://github.com/nipy","followers_url":"https://api.github.com/users/nipy/followers","following_url":"https://api.github.com/users/nipy/following{/other_user}","gists_url":"https://api.github.com/users/nipy/gists{/gist_id}","starred_url":"https://api.github.com/users/nipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nipy/subscriptions","organizations_url":"https://api.github.com/users/nipy/orgs","repos_url":"https://api.github.com/users/nipy/repos","events_url":"https://api.github.com/users/nipy/events{/privacy}","received_events_url":"https://api.github.com/users/nipy/received_events","type":"Organization","site_admin":false},"repo":{"id":1551431,"name":"PySurfer","full_name":"nipy/PySurfer","owner":{"login":"nipy","id":233707,"avatar_url":"https://avatars.githubusercontent.com/u/233707?v=3","gravatar_id":"","url":"https://api.github.com/users/nipy","html_url":"https://github.com/nipy","followers_url":"https://api.github.com/users/nipy/followers","following_url":"https://api.github.com/users/nipy/following{/other_user}","gists_url":"https://api.github.com/users/nipy/gists{/gist_id}","starred_url":"https://api.github.com/users/nipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nipy/subscriptions","organizations_url":"https://api.github.com/users/nipy/orgs","repos_url":"https://api.github.com/users/nipy/repos","events_url":"https://api.github.com/users/nipy/events{/privacy}","received_events_url":"https://api.github.com/users/nipy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nipy/PySurfer","description":"Cortical neuroimaging visualization in Python","fork":false,"url":"https://api.github.com/repos/nipy/PySurfer","forks_url":"https://api.github.com/repos/nipy/PySurfer/forks","keys_url":"https://api.github.com/repos/nipy/PySurfer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nipy/PySurfer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nipy/PySurfer/teams","hooks_url":"https://api.github.com/repos/nipy/PySurfer/hooks","issue_events_url":"https://api.github.com/repos/nipy/PySurfer/issues/events{/number}","events_url":"https://api.github.com/repos/nipy/PySurfer/events","assignees_url":"https://api.github.com/repos/nipy/PySurfer/assignees{/user}","branches_url":"https://api.github.com/repos/nipy/PySurfer/branches{/branch}","tags_url":"https://api.github.com/repos/nipy/PySurfer/tags","blobs_url":"https://api.github.com/repos/nipy/PySurfer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nipy/PySurfer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nipy/PySurfer/git/refs{/sha}","trees_url":"https://api.github.com/repos/nipy/PySurfer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nipy/PySurfer/statuses/{sha}","languages_url":"https://api.github.com/repos/nipy/PySurfer/languages","stargazers_url":"https://api.github.com/repos/nipy/PySurfer/stargazers","contributors_url":"https://api.github.com/repos/nipy/PySurfer/contributors","subscribers_url":"https://api.github.com/repos/nipy/PySurfer/subscribers","subscription_url":"https://api.github.com/repos/nipy/PySurfer/subscription","commits_url":"https://api.github.com/repos/nipy/PySurfer/commits{/sha}","git_commits_url":"https://api.github.com/repos/nipy/PySurfer/git/commits{/sha}","comments_url":"https://api.github.com/repos/nipy/PySurfer/comments{/number}","issue_comment_url":"https://api.github.com/repos/nipy/PySurfer/issues/comments{/number}","contents_url":"https://api.github.com/repos/nipy/PySurfer/contents/{+path}","compare_url":"https://api.github.com/repos/nipy/PySurfer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nipy/PySurfer/merges","archive_url":"https://api.github.com/repos/nipy/PySurfer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nipy/PySurfer/downloads","issues_url":"https://api.github.com/repos/nipy/PySurfer/issues{/number}","pulls_url":"https://api.github.com/repos/nipy/PySurfer/pulls{/number}","milestones_url":"https://api.github.com/repos/nipy/PySurfer/milestones{/number}","notifications_url":"https://api.github.com/repos/nipy/PySurfer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nipy/PySurfer/labels{/name}","releases_url":"https://api.github.com/repos/nipy/PySurfer/releases{/id}","created_at":"2011-03-31T15:30:51Z","updated_at":"2015-02-28T18:09:53Z","pushed_at":"2015-02-28T18:09:53Z","git_url":"git://github.com/nipy/PySurfer.git","ssh_url":"git@github.com:nipy/PySurfer.git","clone_url":"https://github.com/nipy/PySurfer.git","svn_url":"https://github.com/nipy/PySurfer","homepage":"http://pysurfer.github.com","size":20197,"stargazers_count":37,"watchers_count":37,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":30,"mirror_url":null,"open_issues_count":10,"forks":30,"open_issues":10,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nipy/PySurfer/pulls/121"},"html":{"href":"https://github.com/nipy/PySurfer/pull/121"},"issue":{"href":"https://api.github.com/repos/nipy/PySurfer/issues/121"},"comments":{"href":"https://api.github.com/repos/nipy/PySurfer/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/nipy/PySurfer/pulls/121/comments"},"review_comment":{"href":"https://api.github.com/repos/nipy/PySurfer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nipy/PySurfer/pulls/121/commits"},"statuses":{"href":"https://api.github.com/repos/nipy/PySurfer/statuses/7516de110a550e5b79969878ac61cbaae0e58fa7"}}}}