{"action":"created","issue":{"url":"https://api.github.com/repos/librosa/librosa/issues/737","repository_url":"https://api.github.com/repos/librosa/librosa","labels_url":"https://api.github.com/repos/librosa/librosa/issues/737/labels{/name}","comments_url":"https://api.github.com/repos/librosa/librosa/issues/737/comments","events_url":"https://api.github.com/repos/librosa/librosa/issues/737/events","html_url":"https://github.com/librosa/librosa/issues/737","id":336475922,"node_id":"MDU6SXNzdWUzMzY0NzU5MjI=","number":737,"title":"Display axis decorators: seconds, ms","user":{"login":"bmcfee","id":1190540,"node_id":"MDQ6VXNlcjExOTA1NDA=","avatar_url":"https://avatars3.githubusercontent.com/u/1190540?v=4","gravatar_id":"","url":"https://api.github.com/users/bmcfee","html_url":"https://github.com/bmcfee","followers_url":"https://api.github.com/users/bmcfee/followers","following_url":"https://api.github.com/users/bmcfee/following{/other_user}","gists_url":"https://api.github.com/users/bmcfee/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcfee/subscriptions","organizations_url":"https://api.github.com/users/bmcfee/orgs","repos_url":"https://api.github.com/users/bmcfee/repos","events_url":"https://api.github.com/users/bmcfee/events{/privacy}","received_events_url":"https://api.github.com/users/bmcfee/received_events","type":"User","site_admin":false},"labels":[{"id":247500515,"node_id":"MDU6TGFiZWwyNDc1MDA1MTU=","url":"https://api.github.com/repos/librosa/librosa/labels/API%20change","name":"API change","color":"0052cc","default":false},{"id":16995036,"node_id":"MDU6TGFiZWwxNjk5NTAzNg==","url":"https://api.github.com/repos/librosa/librosa/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":101594894,"node_id":"MDU6TGFiZWwxMDE1OTQ4OTQ=","url":"https://api.github.com/repos/librosa/librosa/labels/functionality","name":"functionality","color":"fbca04","default":false},{"id":226642895,"node_id":"MDU6TGFiZWwyMjY2NDI4OTU=","url":"https://api.github.com/repos/librosa/librosa/labels/good%20for%20beginners","name":"good for beginners","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/librosa/librosa/milestones/17","html_url":"https://github.com/librosa/librosa/milestone/17","labels_url":"https://api.github.com/repos/librosa/librosa/milestones/17/labels","id":3544565,"node_id":"MDk6TWlsZXN0b25lMzU0NDU2NQ==","number":17,"title":"0.6.3","description":null,"creator":{"login":"bmcfee","id":1190540,"node_id":"MDQ6VXNlcjExOTA1NDA=","avatar_url":"https://avatars3.githubusercontent.com/u/1190540?v=4","gravatar_id":"","url":"https://api.github.com/users/bmcfee","html_url":"https://github.com/bmcfee","followers_url":"https://api.github.com/users/bmcfee/followers","following_url":"https://api.github.com/users/bmcfee/following{/other_user}","gists_url":"https://api.github.com/users/bmcfee/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcfee/subscriptions","organizations_url":"https://api.github.com/users/bmcfee/orgs","repos_url":"https://api.github.com/users/bmcfee/repos","events_url":"https://api.github.com/users/bmcfee/events{/privacy}","received_events_url":"https://api.github.com/users/bmcfee/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2018-08-03T13:21:19Z","updated_at":"2018-08-03T13:21:28Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2018-06-28T05:18:02Z","updated_at":"2018-08-06T12:56:59Z","closed_at":null,"author_association":"MEMBER","body":"#### Description\r\n\r\nWe currently support two temporal decoration modes: `time` and `lag`.  These modes use seconds as the underlying data representation, and the `TimeFormatter` object adaptively scales the units to an appropriate resolution given the display range.\r\n\r\nIt would be good to be able to override this, and display in fixed units.  This could be easily done by adding a couple of new modes:\r\n\r\n- `seconds`: always use seconds\r\n- `ms`: always use milliseconds\r\n- `lag_seconds`: always use seconds (including negative for lag)\r\n- `lag_ms`: as above, but for milliseconds.\r\n\r\nImplementing this is simply a matter of adding some control logic to the `TimeFormatter`, and adjusting the automatic axis labels to `Time (s)` or `Time (ms)` accordingly."},"comment":{"url":"https://api.github.com/repos/librosa/librosa/issues/comments/410698725","html_url":"https://github.com/librosa/librosa/issues/737#issuecomment-410698725","issue_url":"https://api.github.com/repos/librosa/librosa/issues/737","id":410698725,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDY5ODcyNQ==","user":{"login":"bmcfee","id":1190540,"node_id":"MDQ6VXNlcjExOTA1NDA=","avatar_url":"https://avatars3.githubusercontent.com/u/1190540?v=4","gravatar_id":"","url":"https://api.github.com/users/bmcfee","html_url":"https://github.com/bmcfee","followers_url":"https://api.github.com/users/bmcfee/followers","following_url":"https://api.github.com/users/bmcfee/following{/other_user}","gists_url":"https://api.github.com/users/bmcfee/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcfee/subscriptions","organizations_url":"https://api.github.com/users/bmcfee/orgs","repos_url":"https://api.github.com/users/bmcfee/repos","events_url":"https://api.github.com/users/bmcfee/events{/privacy}","received_events_url":"https://api.github.com/users/bmcfee/received_events","type":"User","site_admin":false},"created_at":"2018-08-06T12:56:59Z","updated_at":"2018-08-06T12:56:59Z","author_association":"MEMBER","body":"> Sorry about the unclear explanation. I actually meant to add units= to the TimeFormatter class. I think it makes sense to add seconds, ms, lag_seconds, ms to the \"Time types\" for x_axis and y_axis parameters of specshow() function and add units parameter to the TimeFormatter class. We are keeping the existing time, lag options, if I am correct?\r\n\r\nOh, great.  We're all on the same page then! :+1: \r\n\r\n\r\n> I guess we should to do either\r\n\r\nMy vote would be for option 2 (SI unit abbreviations and all), but I'm okay with having some redundancy here for long-form names as well.\r\n\r\n\r\n\r\n> I was specifically thinking about a situation when someone uses a very large time range (ex. 10000) with a fixed unit of either seconds or milliseconds. Just concerned about whether it would appear cluttered or not, so I thought of displaying such large numbers as 1e+04, for instance.\r\n> I will keep the existing scale inference method, if time unit is unspecified.\r\n\r\nYup.  We presently use `{:.2g}` (two decimal places with automatic scientific notation). 4 seems like a bit much to me, but I guess it would help to have some examples to look at once everything's in place.  I guess we could also make that configurable by the user, but let's not worry about it yet."}}
{"actor":{"display_login":"bmcfee"}}