{"action":"created","comment":{"url":"https://api.github.com/repos/abinit/abipy/pulls/comments/205093944","pull_request_review_id":140293491,"id":205093944,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTA5Mzk0NA==","diff_hunk":"@@ -1839,7 +1935,49 @@ def pickle_dump(self, filepath=None):\n             return filepath\n \n     @add_fig_kwargs\n-    def plot_itemp(self, itemp, ax=None, e0=\"fermie\", ylims=None, fontsize=12, **kwargs):\n+    def plot_itemp_with_lws_vs_e0(self, itemp, ax_list=None, width_ratios=(2,1),\n+                                  function=lambda x: x, fact=10.0, **kwargs):\n+        \"\"\"\n+        Plot bandstructure with linewidth at temperature ``itemp`` and linewidth vs the KS energies.\n+        \n+        Args:\n+            itemp: Temperature index\n+            ax_list: The axes for the bandstructure plot and the DOS plot. If ax_list is None, a new figure\n+                is created and the two axes are automatically generated.\n+            width_ratios: Defines the ratio between the band structure plot and the dos plot.\n+            function: Apply this function to the values before plotting\n+\n+        Return: |matplotlib-Figure|\n+        \"\"\"\n+        import matplotlib.pyplot as plt \n+        from matplotlib.gridspec import GridSpec\n+        if ax_list is None:\n+            # Build axes and align bands and DOS.\n+            fig = plt.figure()\n+            gspec = GridSpec(1, 2, width_ratios=width_ratios, wspace=0.1, right=0.85)\n+            ax0 = plt.subplot(gspec[0])\n+            ax1 = plt.subplot(gspec[1], sharey=ax0)\n+        else:\n+            # Take them from ax_list.\n+            ax0, ax1 = ax_list\n+            fig = plt.gcf()\n+\n+        #plot the band structure\n+        self.plot_itemp(itemp,ax=ax0,fact=fact,show=False)\n+\n+        #plot the dos\n+        dos_markersize = kwargs.pop(\"markersize\", 4)\n+        self.plot_lws_vs_e0(itemp_list=[itemp],ax=ax1,\n+                            exchange_xy=True,function=abs,\n+                            markersize=dos_markersize,show=False)\n+\n+        ax1.grid(True)\n+        ax1.yaxis.set_ticks_position(\"right\")\n+        ax1.yaxis.set_label_position(\"right\") ","path":"abipy/eph/sigeph.py","position":466,"original_position":466,"commit_id":"2611ebf485557b8e908393bb1af9e2c9c5373370","original_commit_id":"2611ebf485557b8e908393bb1af9e2c9c5373370","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Trailing whitespace](https://app.codacy.com/app/abinit/abipy/pullRequest?prid=1946151)","created_at":"2018-07-25T12:45:39Z","updated_at":"2018-07-25T12:45:39Z","html_url":"https://github.com/abinit/abipy/pull/160#discussion_r205093944","pull_request_url":"https://api.github.com/repos/abinit/abipy/pulls/160","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/abinit/abipy/pulls/comments/205093944"},"html":{"href":"https://github.com/abinit/abipy/pull/160#discussion_r205093944"},"pull_request":{"href":"https://api.github.com/repos/abinit/abipy/pulls/160"}}},"pull_request":{"url":"https://api.github.com/repos/abinit/abipy/pulls/160","id":203756411,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzNzU2NDEx","html_url":"https://github.com/abinit/abipy/pull/160","diff_url":"https://github.com/abinit/abipy/pull/160.diff","patch_url":"https://github.com/abinit/abipy/pull/160.patch","issue_url":"https://api.github.com/repos/abinit/abipy/issues/160","number":160,"state":"open","locked":false,"title":"New plotting options in sigeph","user":{"login":"henriquemiranda","id":5531862,"node_id":"MDQ6VXNlcjU1MzE4NjI=","avatar_url":"https://avatars0.githubusercontent.com/u/5531862?v=4","gravatar_id":"","url":"https://api.github.com/users/henriquemiranda","html_url":"https://github.com/henriquemiranda","followers_url":"https://api.github.com/users/henriquemiranda/followers","following_url":"https://api.github.com/users/henriquemiranda/following{/other_user}","gists_url":"https://api.github.com/users/henriquemiranda/gists{/gist_id}","starred_url":"https://api.github.com/users/henriquemiranda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henriquemiranda/subscriptions","organizations_url":"https://api.github.com/users/henriquemiranda/orgs","repos_url":"https://api.github.com/users/henriquemiranda/repos","events_url":"https://api.github.com/users/henriquemiranda/events{/privacy}","received_events_url":"https://api.github.com/users/henriquemiranda/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-25T08:18:04Z","updated_at":"2018-07-25T12:45:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"90cec2a32b7d25eb4e98bcd7422d80d1ce4d2521","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/abinit/abipy/pulls/160/commits","review_comments_url":"https://api.github.com/repos/abinit/abipy/pulls/160/comments","review_comment_url":"https://api.github.com/repos/abinit/abipy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/abinit/abipy/issues/160/comments","statuses_url":"https://api.github.com/repos/abinit/abipy/statuses/2611ebf485557b8e908393bb1af9e2c9c5373370","head":{"label":"henriquemiranda:develop","ref":"develop","sha":"2611ebf485557b8e908393bb1af9e2c9c5373370","user":{"login":"henriquemiranda","id":5531862,"node_id":"MDQ6VXNlcjU1MzE4NjI=","avatar_url":"https://avatars0.githubusercontent.com/u/5531862?v=4","gravatar_id":"","url":"https://api.github.com/users/henriquemiranda","html_url":"https://github.com/henriquemiranda","followers_url":"https://api.github.com/users/henriquemiranda/followers","following_url":"https://api.github.com/users/henriquemiranda/following{/other_user}","gists_url":"https://api.github.com/users/henriquemiranda/gists{/gist_id}","starred_url":"https://api.github.com/users/henriquemiranda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henriquemiranda/subscriptions","organizations_url":"https://api.github.com/users/henriquemiranda/orgs","repos_url":"https://api.github.com/users/henriquemiranda/repos","events_url":"https://api.github.com/users/henriquemiranda/events{/privacy}","received_events_url":"https://api.github.com/users/henriquemiranda/received_events","type":"User","site_admin":false},"repo":{"id":105808556,"node_id":"MDEwOlJlcG9zaXRvcnkxMDU4MDg1NTY=","name":"abipy","full_name":"henriquemiranda/abipy","owner":{"login":"henriquemiranda","id":5531862,"node_id":"MDQ6VXNlcjU1MzE4NjI=","avatar_url":"https://avatars0.githubusercontent.com/u/5531862?v=4","gravatar_id":"","url":"https://api.github.com/users/henriquemiranda","html_url":"https://github.com/henriquemiranda","followers_url":"https://api.github.com/users/henriquemiranda/followers","following_url":"https://api.github.com/users/henriquemiranda/following{/other_user}","gists_url":"https://api.github.com/users/henriquemiranda/gists{/gist_id}","starred_url":"https://api.github.com/users/henriquemiranda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henriquemiranda/subscriptions","organizations_url":"https://api.github.com/users/henriquemiranda/orgs","repos_url":"https://api.github.com/users/henriquemiranda/repos","events_url":"https://api.github.com/users/henriquemiranda/events{/privacy}","received_events_url":"https://api.github.com/users/henriquemiranda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/henriquemiranda/abipy","description":"Open-source library for analyzing the results produced by ABINIT","fork":true,"url":"https://api.github.com/repos/henriquemiranda/abipy","forks_url":"https://api.github.com/repos/henriquemiranda/abipy/forks","keys_url":"https://api.github.com/repos/henriquemiranda/abipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/henriquemiranda/abipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/henriquemiranda/abipy/teams","hooks_url":"https://api.github.com/repos/henriquemiranda/abipy/hooks","issue_events_url":"https://api.github.com/repos/henriquemiranda/abipy/issues/events{/number}","events_url":"https://api.github.com/repos/henriquemiranda/abipy/events","assignees_url":"https://api.github.com/repos/henriquemiranda/abipy/assignees{/user}","branches_url":"https://api.github.com/repos/henriquemiranda/abipy/branches{/branch}","tags_url":"https://api.github.com/repos/henriquemiranda/abipy/tags","blobs_url":"https://api.github.com/repos/henriquemiranda/abipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/henriquemiranda/abipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/henriquemiranda/abipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/henriquemiranda/abipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/henriquemiranda/abipy/statuses/{sha}","languages_url":"https://api.github.com/repos/henriquemiranda/abipy/languages","stargazers_url":"https://api.github.com/repos/henriquemiranda/abipy/stargazers","contributors_url":"https://api.github.com/repos/henriquemiranda/abipy/contributors","subscribers_url":"https://api.github.com/repos/henriquemiranda/abipy/subscribers","subscription_url":"https://api.github.com/repos/henriquemiranda/abipy/subscription","commits_url":"https://api.github.com/repos/henriquemiranda/abipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/henriquemiranda/abipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/henriquemiranda/abipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/henriquemiranda/abipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/henriquemiranda/abipy/contents/{+path}","compare_url":"https://api.github.com/repos/henriquemiranda/abipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/henriquemiranda/abipy/merges","archive_url":"https://api.github.com/repos/henriquemiranda/abipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/henriquemiranda/abipy/downloads","issues_url":"https://api.github.com/repos/henriquemiranda/abipy/issues{/number}","pulls_url":"https://api.github.com/repos/henriquemiranda/abipy/pulls{/number}","milestones_url":"https://api.github.com/repos/henriquemiranda/abipy/milestones{/number}","notifications_url":"https://api.github.com/repos/henriquemiranda/abipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/henriquemiranda/abipy/labels{/name}","releases_url":"https://api.github.com/repos/henriquemiranda/abipy/releases{/id}","deployments_url":"https://api.github.com/repos/henriquemiranda/abipy/deployments","created_at":"2017-10-04T19:20:13Z","updated_at":"2018-07-25T12:42:47Z","pushed_at":"2018-07-25T12:42:45Z","git_url":"git://github.com/henriquemiranda/abipy.git","ssh_url":"git@github.com:henriquemiranda/abipy.git","clone_url":"https://github.com/henriquemiranda/abipy.git","svn_url":"https://github.com/henriquemiranda/abipy","homepage":"http://www.abinit.org/","size":61578,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"abinit:develop","ref":"develop","sha":"defecb836b1e6a4ace7537dec7c27e1163f005f1","user":{"login":"abinit","id":15837788,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1ODM3Nzg4","avatar_url":"https://avatars3.githubusercontent.com/u/15837788?v=4","gravatar_id":"","url":"https://api.github.com/users/abinit","html_url":"https://github.com/abinit","followers_url":"https://api.github.com/users/abinit/followers","following_url":"https://api.github.com/users/abinit/following{/other_user}","gists_url":"https://api.github.com/users/abinit/gists{/gist_id}","starred_url":"https://api.github.com/users/abinit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abinit/subscriptions","organizations_url":"https://api.github.com/users/abinit/orgs","repos_url":"https://api.github.com/users/abinit/repos","events_url":"https://api.github.com/users/abinit/events{/privacy}","received_events_url":"https://api.github.com/users/abinit/received_events","type":"Organization","site_admin":false},"repo":{"id":10968614,"node_id":"MDEwOlJlcG9zaXRvcnkxMDk2ODYxNA==","name":"abipy","full_name":"abinit/abipy","owner":{"login":"abinit","id":15837788,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1ODM3Nzg4","avatar_url":"https://avatars3.githubusercontent.com/u/15837788?v=4","gravatar_id":"","url":"https://api.github.com/users/abinit","html_url":"https://github.com/abinit","followers_url":"https://api.github.com/users/abinit/followers","following_url":"https://api.github.com/users/abinit/following{/other_user}","gists_url":"https://api.github.com/users/abinit/gists{/gist_id}","starred_url":"https://api.github.com/users/abinit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abinit/subscriptions","organizations_url":"https://api.github.com/users/abinit/orgs","repos_url":"https://api.github.com/users/abinit/repos","events_url":"https://api.github.com/users/abinit/events{/privacy}","received_events_url":"https://api.github.com/users/abinit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/abinit/abipy","description":"Open-source library for analyzing the results produced by ABINIT","fork":false,"url":"https://api.github.com/repos/abinit/abipy","forks_url":"https://api.github.com/repos/abinit/abipy/forks","keys_url":"https://api.github.com/repos/abinit/abipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abinit/abipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abinit/abipy/teams","hooks_url":"https://api.github.com/repos/abinit/abipy/hooks","issue_events_url":"https://api.github.com/repos/abinit/abipy/issues/events{/number}","events_url":"https://api.github.com/repos/abinit/abipy/events","assignees_url":"https://api.github.com/repos/abinit/abipy/assignees{/user}","branches_url":"https://api.github.com/repos/abinit/abipy/branches{/branch}","tags_url":"https://api.github.com/repos/abinit/abipy/tags","blobs_url":"https://api.github.com/repos/abinit/abipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abinit/abipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abinit/abipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/abinit/abipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abinit/abipy/statuses/{sha}","languages_url":"https://api.github.com/repos/abinit/abipy/languages","stargazers_url":"https://api.github.com/repos/abinit/abipy/stargazers","contributors_url":"https://api.github.com/repos/abinit/abipy/contributors","subscribers_url":"https://api.github.com/repos/abinit/abipy/subscribers","subscription_url":"https://api.github.com/repos/abinit/abipy/subscription","commits_url":"https://api.github.com/repos/abinit/abipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/abinit/abipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/abinit/abipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/abinit/abipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/abinit/abipy/contents/{+path}","compare_url":"https://api.github.com/repos/abinit/abipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abinit/abipy/merges","archive_url":"https://api.github.com/repos/abinit/abipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abinit/abipy/downloads","issues_url":"https://api.github.com/repos/abinit/abipy/issues{/number}","pulls_url":"https://api.github.com/repos/abinit/abipy/pulls{/number}","milestones_url":"https://api.github.com/repos/abinit/abipy/milestones{/number}","notifications_url":"https://api.github.com/repos/abinit/abipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abinit/abipy/labels{/name}","releases_url":"https://api.github.com/repos/abinit/abipy/releases{/id}","deployments_url":"https://api.github.com/repos/abinit/abipy/deployments","created_at":"2013-06-26T13:30:30Z","updated_at":"2018-07-25T09:05:27Z","pushed_at":"2018-07-25T12:42:46Z","git_url":"git://github.com/abinit/abipy.git","ssh_url":"git@github.com:abinit/abipy.git","clone_url":"https://github.com/abinit/abipy.git","svn_url":"https://github.com/abinit/abipy","homepage":"http://pythonhosted.org/abipy/","size":201172,"stargazers_count":22,"watchers_count":22,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":34,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":34,"open_issues":3,"watchers":22,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/abinit/abipy/pulls/160"},"html":{"href":"https://github.com/abinit/abipy/pull/160"},"issue":{"href":"https://api.github.com/repos/abinit/abipy/issues/160"},"comments":{"href":"https://api.github.com/repos/abinit/abipy/issues/160/comments"},"review_comments":{"href":"https://api.github.com/repos/abinit/abipy/pulls/160/comments"},"review_comment":{"href":"https://api.github.com/repos/abinit/abipy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/abinit/abipy/pulls/160/commits"},"statuses":{"href":"https://api.github.com/repos/abinit/abipy/statuses/2611ebf485557b8e908393bb1af9e2c9c5373370"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}