{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/7558","repository_url":"https://api.github.com/repos/matplotlib/matplotlib","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/7558/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/7558/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/7558/events","html_url":"https://github.com/matplotlib/matplotlib/issues/7558","id":193282644,"number":7558,"title":"Colorbar becomes 0 to 1 after colorbar ax.yaxis.set_major_formatter","user":{"login":"BowenFu","id":5812640,"avatar_url":"https://avatars.githubusercontent.com/u/5812640?v=3","gravatar_id":"","url":"https://api.github.com/users/BowenFu","html_url":"https://github.com/BowenFu","followers_url":"https://api.github.com/users/BowenFu/followers","following_url":"https://api.github.com/users/BowenFu/following{/other_user}","gists_url":"https://api.github.com/users/BowenFu/gists{/gist_id}","starred_url":"https://api.github.com/users/BowenFu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BowenFu/subscriptions","organizations_url":"https://api.github.com/users/BowenFu/orgs","repos_url":"https://api.github.com/users/BowenFu/repos","events_url":"https://api.github.com/users/BowenFu/events{/privacy}","received_events_url":"https://api.github.com/users/BowenFu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/20","html_url":"https://github.com/matplotlib/matplotlib/milestones/2.0.1%20(next%20bug%20fix%20release)","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/20/labels","id":1306895,"number":20,"title":"2.0.1 (next bug fix release)","description":"","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":193,"closed_issues":144,"state":"open","created_at":"2015-09-15T17:47:44Z","updated_at":"2016-12-03T16:00:12Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-12-03T11:53:41Z","updated_at":"2016-12-03T17:39:28Z","closed_at":null,"body":"matplotlib 1.5.3\r\npip\r\npython 3.4\r\nUbuntu 14.04\r\n\r\n    NO_POWER_FORM = matplotlib.ticker.ScalarFormatter(useMathText=False, useOffset=False)\r\n    NO_POWER_FORM.set_scientific(False)\r\n\r\n    colorbar_ax=matplotlib.pyplot.colorbar(ticks=contour_range).ax\r\n    colorbar_ax.set_title(colorbar_zlabel)\r\n    colorbar_ax.yaxis.set_major_formatter(style.NO_POWER_FORM)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/264653567","html_url":"https://github.com/matplotlib/matplotlib/issues/7558#issuecomment-264653567","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/7558","id":264653567,"user":{"login":"efiring","id":85125,"avatar_url":"https://avatars.githubusercontent.com/u/85125?v=3","gravatar_id":"","url":"https://api.github.com/users/efiring","html_url":"https://github.com/efiring","followers_url":"https://api.github.com/users/efiring/followers","following_url":"https://api.github.com/users/efiring/following{/other_user}","gists_url":"https://api.github.com/users/efiring/gists{/gist_id}","starred_url":"https://api.github.com/users/efiring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efiring/subscriptions","organizations_url":"https://api.github.com/users/efiring/orgs","repos_url":"https://api.github.com/users/efiring/repos","events_url":"https://api.github.com/users/efiring/events{/privacy}","received_events_url":"https://api.github.com/users/efiring/received_events","type":"User","site_admin":false},"created_at":"2016-12-03T17:39:28Z","updated_at":"2016-12-03T17:39:28Z","body":"@bowenfu, you have not provided a self-contained example so I can't run your code, but I think the problem is that colorbar is not a normal Axes; it is a rather odd special-purpose beast in many ways.  It does not use the Axes locators at all, and it uses the x or y Axes formatter only for the offset string. The API for manipulating the tick label format is via the `format` kwarg in its initializer. "}}
{"actor":{"display_login":"efiring"}}