{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6407","repository_url":"https://api.github.com/repos/matplotlib/matplotlib","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6407/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6407/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6407/events","html_url":"https://github.com/matplotlib/matplotlib/pull/6407","id":154365386,"number":6407,"title":"adding default toggled state for toggle tools","user":{"login":"fariza","id":1490153,"avatar_url":"https://avatars.githubusercontent.com/u/1490153?v=3","gravatar_id":"","url":"https://api.github.com/users/fariza","html_url":"https://github.com/fariza","followers_url":"https://api.github.com/users/fariza/followers","following_url":"https://api.github.com/users/fariza/following{/other_user}","gists_url":"https://api.github.com/users/fariza/gists{/gist_id}","starred_url":"https://api.github.com/users/fariza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fariza/subscriptions","organizations_url":"https://api.github.com/users/fariza/orgs","repos_url":"https://api.github.com/users/fariza/repos","events_url":"https://api.github.com/users/fariza/events{/privacy}","received_events_url":"https://api.github.com/users/fariza/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/needs_review","name":"needs_review","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/12","html_url":"https://github.com/matplotlib/matplotlib/milestones/2.1%20(next%20point%20release)","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/12/labels","id":534144,"number":12,"title":"2.1 (next point release)","description":"Next feature release.\r\n\r\nBig ticket items:\r\n\r\n - MEP 22/27\r\n - traitlets","creator":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"open_issues":485,"closed_issues":371,"state":"open","created_at":"2014-01-13T03:21:09Z","updated_at":"2016-05-12T01:20:20Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-05-11T23:27:33Z","updated_at":"2016-05-12T01:48:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/6407","html_url":"https://github.com/matplotlib/matplotlib/pull/6407","diff_url":"https://github.com/matplotlib/matplotlib/pull/6407.diff","patch_url":"https://github.com/matplotlib/matplotlib/pull/6407.patch"},"body":"So far toggle tools start their life in the **untoggled** state, most of the time this is what we want but sometimes it is desirable to initialize a ToogleTool in a **toggled** state without firing the `tool_trigger_xxx` event\r\n\r\nWith the changes in this PR, the initial state can be changed by class attribute during Tool definition `default_toggle = True` or at the moment of adding the tool to the Toolmanager `toolmanager.add_tool('Name', ToolCls, toggle=True)`"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/218638765","html_url":"https://github.com/matplotlib/matplotlib/pull/6407#issuecomment-218638765","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6407","id":218638765,"user":{"login":"fariza","id":1490153,"avatar_url":"https://avatars.githubusercontent.com/u/1490153?v=3","gravatar_id":"","url":"https://api.github.com/users/fariza","html_url":"https://github.com/fariza","followers_url":"https://api.github.com/users/fariza/followers","following_url":"https://api.github.com/users/fariza/following{/other_user}","gists_url":"https://api.github.com/users/fariza/gists{/gist_id}","starred_url":"https://api.github.com/users/fariza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fariza/subscriptions","organizations_url":"https://api.github.com/users/fariza/orgs","repos_url":"https://api.github.com/users/fariza/repos","events_url":"https://api.github.com/users/fariza/events{/privacy}","received_events_url":"https://api.github.com/users/fariza/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T01:48:46Z","updated_at":"2016-05-12T01:48:46Z","body":"Just in case I added the double back tick"}}