{"action":"created","issue":{"url":"https://api.github.com/repos/tbreloff/Plots.jl/issues/458","repository_url":"https://api.github.com/repos/tbreloff/Plots.jl","labels_url":"https://api.github.com/repos/tbreloff/Plots.jl/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/tbreloff/Plots.jl/issues/458/comments","events_url":"https://api.github.com/repos/tbreloff/Plots.jl/issues/458/events","html_url":"https://github.com/tbreloff/Plots.jl/issues/458","id":173451854,"number":458,"title":"Alternative ticks for log-plots","user":{"login":"mfalt","id":3237193,"avatar_url":"https://avatars.githubusercontent.com/u/3237193?v=3","gravatar_id":"","url":"https://api.github.com/users/mfalt","html_url":"https://github.com/mfalt","followers_url":"https://api.github.com/users/mfalt/followers","following_url":"https://api.github.com/users/mfalt/following{/other_user}","gists_url":"https://api.github.com/users/mfalt/gists{/gist_id}","starred_url":"https://api.github.com/users/mfalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfalt/subscriptions","organizations_url":"https://api.github.com/users/mfalt/orgs","repos_url":"https://api.github.com/users/mfalt/repos","events_url":"https://api.github.com/users/mfalt/events{/privacy}","received_events_url":"https://api.github.com/users/mfalt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-26T13:22:53Z","updated_at":"2016-08-26T14:09:10Z","closed_at":null,"body":"It it possible in the current framework to show minor ticks in log plots as 2*10^x, 3*10^x .. 9*10^x as is common in for example bode plots:\r\n![bode](https://upload.wikimedia.org/wikipedia/commons/f/fd/Bode-pt2.png)\r\nor is there a simple way to add it in this package or in the user code?\r\nI was able to create something similar with the following (ugly) code\r\n```\r\nfunction getLogTicks(x)\r\n    min = ceil(log10(minimum(x)))\r\n    max = floor(log10(maximum(x)))\r\n    major = 10.^collect(min:max)\r\n    majorText = [\"\\$10^{$(round(Int64,i))}\\$\" for i=min:max]\r\n    minor = [j*10^i for i=(min-1):(max+1) for j=2:9]\r\n    minor = minor[find(minimum(x) .<= minor .<= maximum(x))]\r\n    ([major; minor], [majorText; fill(\"\", length(minor))])\r\nend\r\n```\r\nbut I can't find a command for having different styles on the different tick lines. And when using these ticks with something like\r\n`Plots.plot!(x, y, xscale=:log10, ticks=getLogTicks(x))`\r\nthe old ticks are overwritten when adding more plots."},"comment":{"url":"https://api.github.com/repos/tbreloff/Plots.jl/issues/comments/242745617","html_url":"https://github.com/tbreloff/Plots.jl/issues/458#issuecomment-242745617","issue_url":"https://api.github.com/repos/tbreloff/Plots.jl/issues/458","id":242745617,"user":{"login":"mfalt","id":3237193,"avatar_url":"https://avatars.githubusercontent.com/u/3237193?v=3","gravatar_id":"","url":"https://api.github.com/users/mfalt","html_url":"https://github.com/mfalt","followers_url":"https://api.github.com/users/mfalt/followers","following_url":"https://api.github.com/users/mfalt/following{/other_user}","gists_url":"https://api.github.com/users/mfalt/gists{/gist_id}","starred_url":"https://api.github.com/users/mfalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfalt/subscriptions","organizations_url":"https://api.github.com/users/mfalt/orgs","repos_url":"https://api.github.com/users/mfalt/repos","events_url":"https://api.github.com/users/mfalt/events{/privacy}","received_events_url":"https://api.github.com/users/mfalt/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T14:09:10Z","updated_at":"2016-08-26T14:09:10Z","body":"A question related to the formatter, it seems like not all back-ends support latex in the tick text, is there a good way of getting around this, either by a common formatting rule, or formatting in different ways for different back-ends?"}}
{"actor":{"display_login":"mfalt"}}