{"action":"created","comment":{"url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/comments/57117052","id":57117052,"diff_hunk":"@@ -114,6 +115,16 @@ def setAngle(self, angle):\n     def setAnchor(self, anchor):\n         self.anchor = Point(anchor)\n         self.updateTextPos()\n+\n+    def setColor(self, color):\n+        \"\"\"\n+        Set the color for this text.\n+        \n+        See QtGui.QGraphicsItem.setDefaultTextColor().\n+        \"\"\"\n+        self.color = fn.mkColor(color)\n+        self.textItem.setDefaultTextColor(self.color)\n+        self.updateTextPos()","path":"pyqtgraph/graphicsItems/TextItem.py","position":null,"original_position":39,"commit_id":"5cd9646fc82c36c27319748057a33dc7b8ed8e4d","original_commit_id":"fe115a9667b2670f23af3e451c8064065c50fb65","user":{"login":"lesauxvi","id":8177167,"avatar_url":"https://avatars.githubusercontent.com/u/8177167?v=3","gravatar_id":"","url":"https://api.github.com/users/lesauxvi","html_url":"https://github.com/lesauxvi","followers_url":"https://api.github.com/users/lesauxvi/followers","following_url":"https://api.github.com/users/lesauxvi/following{/other_user}","gists_url":"https://api.github.com/users/lesauxvi/gists{/gist_id}","starred_url":"https://api.github.com/users/lesauxvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesauxvi/subscriptions","organizations_url":"https://api.github.com/users/lesauxvi/orgs","repos_url":"https://api.github.com/users/lesauxvi/repos","events_url":"https://api.github.com/users/lesauxvi/events{/privacy}","received_events_url":"https://api.github.com/users/lesauxvi/received_events","type":"User","site_admin":false},"body":"No. It was just a mistake. I copy/paste setText method to create the setColor method and did not checkd carefully enough. Thanks! ","created_at":"2016-03-23T07:03:14Z","updated_at":"2016-03-23T07:03:14Z","html_url":"https://github.com/pyqtgraph/pyqtgraph/pull/291#discussion_r57117052","pull_request_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/291","_links":{"self":{"href":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/comments/57117052"},"html":{"href":"https://github.com/pyqtgraph/pyqtgraph/pull/291#discussion_r57117052"},"pull_request":{"href":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/291"}}},"pull_request":{"url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/291","id":61058474,"html_url":"https://github.com/pyqtgraph/pyqtgraph/pull/291","diff_url":"https://github.com/pyqtgraph/pyqtgraph/pull/291.diff","patch_url":"https://github.com/pyqtgraph/pyqtgraph/pull/291.patch","issue_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/issues/291","number":291,"state":"open","locked":false,"title":"slight changes in TextItem","user":{"login":"lesauxvi","id":8177167,"avatar_url":"https://avatars.githubusercontent.com/u/8177167?v=3","gravatar_id":"","url":"https://api.github.com/users/lesauxvi","html_url":"https://github.com/lesauxvi","followers_url":"https://api.github.com/users/lesauxvi/followers","following_url":"https://api.github.com/users/lesauxvi/following{/other_user}","gists_url":"https://api.github.com/users/lesauxvi/gists{/gist_id}","starred_url":"https://api.github.com/users/lesauxvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesauxvi/subscriptions","organizations_url":"https://api.github.com/users/lesauxvi/orgs","repos_url":"https://api.github.com/users/lesauxvi/repos","events_url":"https://api.github.com/users/lesauxvi/events{/privacy}","received_events_url":"https://api.github.com/users/lesauxvi/received_events","type":"User","site_admin":false},"body":"The default text color of any TextItem objects is reinitialized everytime the setText method is called. As a consequence, the color argument of labelOpts in the new InfiniteLine class can not be taken into account. This PR changes this behaviour.","created_at":"2016-02-29T10:43:30Z","updated_at":"2016-03-23T07:03:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72588a659fc5afdc4cf26a85f5d6a8df1802418f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/291/commits","review_comments_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/291/comments","review_comment_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/issues/291/comments","statuses_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/statuses/5cd9646fc82c36c27319748057a33dc7b8ed8e4d","head":{"label":"lesauxvi:textitem","ref":"textitem","sha":"5cd9646fc82c36c27319748057a33dc7b8ed8e4d","user":{"login":"lesauxvi","id":8177167,"avatar_url":"https://avatars.githubusercontent.com/u/8177167?v=3","gravatar_id":"","url":"https://api.github.com/users/lesauxvi","html_url":"https://github.com/lesauxvi","followers_url":"https://api.github.com/users/lesauxvi/followers","following_url":"https://api.github.com/users/lesauxvi/following{/other_user}","gists_url":"https://api.github.com/users/lesauxvi/gists{/gist_id}","starred_url":"https://api.github.com/users/lesauxvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesauxvi/subscriptions","organizations_url":"https://api.github.com/users/lesauxvi/orgs","repos_url":"https://api.github.com/users/lesauxvi/repos","events_url":"https://api.github.com/users/lesauxvi/events{/privacy}","received_events_url":"https://api.github.com/users/lesauxvi/received_events","type":"User","site_admin":false},"repo":{"id":52783514,"name":"pyqtgraph","full_name":"lesauxvi/pyqtgraph","owner":{"login":"lesauxvi","id":8177167,"avatar_url":"https://avatars.githubusercontent.com/u/8177167?v=3","gravatar_id":"","url":"https://api.github.com/users/lesauxvi","html_url":"https://github.com/lesauxvi","followers_url":"https://api.github.com/users/lesauxvi/followers","following_url":"https://api.github.com/users/lesauxvi/following{/other_user}","gists_url":"https://api.github.com/users/lesauxvi/gists{/gist_id}","starred_url":"https://api.github.com/users/lesauxvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesauxvi/subscriptions","organizations_url":"https://api.github.com/users/lesauxvi/orgs","repos_url":"https://api.github.com/users/lesauxvi/repos","events_url":"https://api.github.com/users/lesauxvi/events{/privacy}","received_events_url":"https://api.github.com/users/lesauxvi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lesauxvi/pyqtgraph","description":"pyqtgraph main development repository","fork":true,"url":"https://api.github.com/repos/lesauxvi/pyqtgraph","forks_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/forks","keys_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/teams","hooks_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/hooks","issue_events_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/issues/events{/number}","events_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/events","assignees_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/assignees{/user}","branches_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/branches{/branch}","tags_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/tags","blobs_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/git/refs{/sha}","trees_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/statuses/{sha}","languages_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/languages","stargazers_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/stargazers","contributors_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/contributors","subscribers_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/subscribers","subscription_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/subscription","commits_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/commits{/sha}","git_commits_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/git/commits{/sha}","comments_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/comments{/number}","issue_comment_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/issues/comments{/number}","contents_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/contents/{+path}","compare_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/merges","archive_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/downloads","issues_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/issues{/number}","pulls_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/pulls{/number}","milestones_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/milestones{/number}","notifications_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/labels{/name}","releases_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/releases{/id}","deployments_url":"https://api.github.com/repos/lesauxvi/pyqtgraph/deployments","created_at":"2016-02-29T10:35:30Z","updated_at":"2016-02-29T10:35:31Z","pushed_at":"2016-03-23T07:00:57Z","git_url":"git://github.com/lesauxvi/pyqtgraph.git","ssh_url":"git@github.com:lesauxvi/pyqtgraph.git","clone_url":"https://github.com/lesauxvi/pyqtgraph.git","svn_url":"https://github.com/lesauxvi/pyqtgraph","homepage":null,"size":3358,"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":"develop"}},"base":{"label":"pyqtgraph:develop","ref":"develop","sha":"9d64b269d57c84faa00ecd92474ca67eb45e6094","user":{"login":"pyqtgraph","id":5440571,"avatar_url":"https://avatars.githubusercontent.com/u/5440571?v=3","gravatar_id":"","url":"https://api.github.com/users/pyqtgraph","html_url":"https://github.com/pyqtgraph","followers_url":"https://api.github.com/users/pyqtgraph/followers","following_url":"https://api.github.com/users/pyqtgraph/following{/other_user}","gists_url":"https://api.github.com/users/pyqtgraph/gists{/gist_id}","starred_url":"https://api.github.com/users/pyqtgraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyqtgraph/subscriptions","organizations_url":"https://api.github.com/users/pyqtgraph/orgs","repos_url":"https://api.github.com/users/pyqtgraph/repos","events_url":"https://api.github.com/users/pyqtgraph/events{/privacy}","received_events_url":"https://api.github.com/users/pyqtgraph/received_events","type":"Organization","site_admin":false},"repo":{"id":12777496,"name":"pyqtgraph","full_name":"pyqtgraph/pyqtgraph","owner":{"login":"pyqtgraph","id":5440571,"avatar_url":"https://avatars.githubusercontent.com/u/5440571?v=3","gravatar_id":"","url":"https://api.github.com/users/pyqtgraph","html_url":"https://github.com/pyqtgraph","followers_url":"https://api.github.com/users/pyqtgraph/followers","following_url":"https://api.github.com/users/pyqtgraph/following{/other_user}","gists_url":"https://api.github.com/users/pyqtgraph/gists{/gist_id}","starred_url":"https://api.github.com/users/pyqtgraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyqtgraph/subscriptions","organizations_url":"https://api.github.com/users/pyqtgraph/orgs","repos_url":"https://api.github.com/users/pyqtgraph/repos","events_url":"https://api.github.com/users/pyqtgraph/events{/privacy}","received_events_url":"https://api.github.com/users/pyqtgraph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pyqtgraph/pyqtgraph","description":"pyqtgraph main development repository","fork":false,"url":"https://api.github.com/repos/pyqtgraph/pyqtgraph","forks_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/forks","keys_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/teams","hooks_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/hooks","issue_events_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/issues/events{/number}","events_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/events","assignees_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/assignees{/user}","branches_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/branches{/branch}","tags_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/tags","blobs_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/git/refs{/sha}","trees_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/statuses/{sha}","languages_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/languages","stargazers_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/stargazers","contributors_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/contributors","subscribers_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/subscribers","subscription_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/subscription","commits_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/commits{/sha}","git_commits_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/git/commits{/sha}","comments_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/comments{/number}","issue_comment_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/issues/comments{/number}","contents_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/contents/{+path}","compare_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/merges","archive_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/downloads","issues_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/issues{/number}","pulls_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls{/number}","milestones_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/milestones{/number}","notifications_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/labels{/name}","releases_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/releases{/id}","deployments_url":"https://api.github.com/repos/pyqtgraph/pyqtgraph/deployments","created_at":"2013-09-12T07:18:21Z","updated_at":"2016-03-23T04:49:14Z","pushed_at":"2016-03-23T07:00:58Z","git_url":"git://github.com/pyqtgraph/pyqtgraph.git","ssh_url":"git@github.com:pyqtgraph/pyqtgraph.git","clone_url":"https://github.com/pyqtgraph/pyqtgraph.git","svn_url":"https://github.com/pyqtgraph/pyqtgraph","homepage":null,"size":4650,"stargazers_count":376,"watchers_count":376,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":201,"mirror_url":null,"open_issues_count":149,"forks":201,"open_issues":149,"watchers":376,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/291"},"html":{"href":"https://github.com/pyqtgraph/pyqtgraph/pull/291"},"issue":{"href":"https://api.github.com/repos/pyqtgraph/pyqtgraph/issues/291"},"comments":{"href":"https://api.github.com/repos/pyqtgraph/pyqtgraph/issues/291/comments"},"review_comments":{"href":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/291/comments"},"review_comment":{"href":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pyqtgraph/pyqtgraph/pulls/291/commits"},"statuses":{"href":"https://api.github.com/repos/pyqtgraph/pyqtgraph/statuses/5cd9646fc82c36c27319748057a33dc7b8ed8e4d"}}}}