{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6057","repository_url":"https://api.github.com/repos/matplotlib/matplotlib","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6057/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6057/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6057/events","html_url":"https://github.com/matplotlib/matplotlib/issues/6057","id":136221384,"number":6057,"title":"Infinite Loop: LogLocator Colorbar & update_ticks","user":{"login":"ocehugo","id":1202691,"avatar_url":"https://avatars.githubusercontent.com/u/1202691?v=3","gravatar_id":"","url":"https://api.github.com/users/ocehugo","html_url":"https://github.com/ocehugo","followers_url":"https://api.github.com/users/ocehugo/followers","following_url":"https://api.github.com/users/ocehugo/following{/other_user}","gists_url":"https://api.github.com/users/ocehugo/gists{/gist_id}","starred_url":"https://api.github.com/users/ocehugo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocehugo/subscriptions","organizations_url":"https://api.github.com/users/ocehugo/orgs","repos_url":"https://api.github.com/users/ocehugo/repos","events_url":"https://api.github.com/users/ocehugo/events{/privacy}","received_events_url":"https://api.github.com/users/ocehugo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"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":61,"closed_issues":16,"state":"open","created_at":"2015-09-15T17:47:44Z","updated_at":"2016-02-25T01:18:06Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-02-24T23:21:40Z","updated_at":"2016-02-25T01:18:42Z","closed_at":null,"body":"- [ 1.5.1,3.5.1,OSX] Matplotlib version, Python version and Platform (Windows, OSX, Linux ...)\r\n- [pip ] How did you install Matplotlib and Python (pip, anaconda, from source ...)\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nimport matplotlib as mpl\r\nfrom matplotlib.colors import LogNorm\r\nimport numpy as np\r\nfrom matplotlib.mlab import bivariate_normal\r\n\r\n\r\nN = 100\r\nX, Y = np.mgrid[-3:3:complex(0, N), -2:2:complex(0, N)]\r\n\r\n# A low hump with a spike coming out of the top right.\r\n# Needs to have z/colour axis on a log scale so we see both hump and spike.\r\n# linear scale only shows the spike.\r\nZ1 = bivariate_normal(X, Y, 0.1, 0.2, 1.0, 1.0) + 0.1 * bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0)\r\n\r\nplt.subplot(2, 1, 1)\r\nplt.pcolor(X, Y, Z1, norm=LogNorm(vmin=Z1.min(), vmax=Z1.max()), cmap='PuBu_r')\r\ncbar = plt.colorbar()\r\ncbar.locator = mpl.ticker.LogLocator(numticks=1)\r\ncbar.update_ticks()\r\n```\r\n\r\nThe code above follow from the pcolor_log.py example.\r\n\r\n\r\nPS: I would be great if mpl include a LogMaxNLocator just like the linear one."},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/188545712","html_url":"https://github.com/matplotlib/matplotlib/issues/6057#issuecomment-188545712","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6057","id":188545712,"user":{"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},"created_at":"2016-02-25T01:18:42Z","updated_at":"2016-02-25T01:18:42Z","body":"The simple 'fix' is that to get what you want with `numticks=1` I think you really want to pass `numticks=2`"}}