{"action":"created","issue":{"url":"https://api.github.com/repos/gwpy/gwpy/issues/120","labels_url":"https://api.github.com/repos/gwpy/gwpy/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/gwpy/gwpy/issues/120/comments","events_url":"https://api.github.com/repos/gwpy/gwpy/issues/120/events","html_url":"https://github.com/gwpy/gwpy/issues/120","id":96071005,"number":120,"title":"When plotting integer timeseries, y-axis labels require math to understand","user":{"login":"jrsmith02","id":7536082,"avatar_url":"https://avatars.githubusercontent.com/u/7536082?v=3","gravatar_id":"","url":"https://api.github.com/users/jrsmith02","html_url":"https://github.com/jrsmith02","followers_url":"https://api.github.com/users/jrsmith02/followers","following_url":"https://api.github.com/users/jrsmith02/following{/other_user}","gists_url":"https://api.github.com/users/jrsmith02/gists{/gist_id}","starred_url":"https://api.github.com/users/jrsmith02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrsmith02/subscriptions","organizations_url":"https://api.github.com/users/jrsmith02/orgs","repos_url":"https://api.github.com/users/jrsmith02/repos","events_url":"https://api.github.com/users/jrsmith02/events{/privacy}","received_events_url":"https://api.github.com/users/jrsmith02/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gwpy/gwpy/labels/plotter","name":"plotter","color":"bfdadc"}],"state":"open","locked":false,"assignee":{"login":"duncanmmacleod","id":1618530,"avatar_url":"https://avatars.githubusercontent.com/u/1618530?v=3","gravatar_id":"","url":"https://api.github.com/users/duncanmmacleod","html_url":"https://github.com/duncanmmacleod","followers_url":"https://api.github.com/users/duncanmmacleod/followers","following_url":"https://api.github.com/users/duncanmmacleod/following{/other_user}","gists_url":"https://api.github.com/users/duncanmmacleod/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanmmacleod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanmmacleod/subscriptions","organizations_url":"https://api.github.com/users/duncanmmacleod/orgs","repos_url":"https://api.github.com/users/duncanmmacleod/repos","events_url":"https://api.github.com/users/duncanmmacleod/events{/privacy}","received_events_url":"https://api.github.com/users/duncanmmacleod/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-07-20T14:01:58Z","updated_at":"2015-07-20T16:31:47Z","closed_at":null,"body":"When plotting a time series of a channel that happens to be an integer during the time plotted, the y-axis labels get strange. Here is a snippet of code: \r\n```bash\r\n/usr/local/ldvw/bin/gwpy-plot timeseries --chan 'H1:OMC-DCPD_B_GAIN' --start 1117831923 --duration 3 --out '/usr/local/tomcat_base/temp/ldvw5084635943129869409.png'\r\n```\r\nand here's the ligoDV-web output: \r\nhttps://ldvw.ligo.caltech.edu/ldvw/view?act=getImg&imgId=78247\r\nNotice the +9.99x10^2 in the top left corner. The integer is 1000, but it plots it as 1.0+9.99x10^2.\r\n\r\nP.S. I think this also happens with time series that have a large DC offset, and small variation, but I do not have a code snippet to prove it. I mention that because I don't think fixing this only for integers is the thing to do. "},"comment":{"url":"https://api.github.com/repos/gwpy/gwpy/issues/comments/122941456","html_url":"https://github.com/gwpy/gwpy/issues/120#issuecomment-122941456","issue_url":"https://api.github.com/repos/gwpy/gwpy/issues/120","id":122941456,"user":{"login":"duncanmmacleod","id":1618530,"avatar_url":"https://avatars.githubusercontent.com/u/1618530?v=3","gravatar_id":"","url":"https://api.github.com/users/duncanmmacleod","html_url":"https://github.com/duncanmmacleod","followers_url":"https://api.github.com/users/duncanmmacleod/followers","following_url":"https://api.github.com/users/duncanmmacleod/following{/other_user}","gists_url":"https://api.github.com/users/duncanmmacleod/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanmmacleod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanmmacleod/subscriptions","organizations_url":"https://api.github.com/users/duncanmmacleod/orgs","repos_url":"https://api.github.com/users/duncanmmacleod/repos","events_url":"https://api.github.com/users/duncanmmacleod/events{/privacy}","received_events_url":"https://api.github.com/users/duncanmmacleod/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T16:31:47Z","updated_at":"2015-07-20T16:31:47Z","body":"the `TimeSeries` object you get back will have a `span` attribute that gives the enclosing GPS segment for the data: `[t_0, t_n+dt)`, you should be able to use that for the `xlim`, or the union of all such `span` segments when plotting multiple channels."}}