{"action":"created","issue":{"url":"https://api.github.com/repos/samtools/bcftools/issues/352","labels_url":"https://api.github.com/repos/samtools/bcftools/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/samtools/bcftools/issues/352/comments","events_url":"https://api.github.com/repos/samtools/bcftools/issues/352/events","html_url":"https://github.com/samtools/bcftools/pull/352","id":116632141,"number":352,"title":"plot-vcfstats: plotting of sample names fixed","user":{"login":"dlaehnemann","id":1379875,"avatar_url":"https://avatars.githubusercontent.com/u/1379875?v=3","gravatar_id":"","url":"https://api.github.com/users/dlaehnemann","html_url":"https://github.com/dlaehnemann","followers_url":"https://api.github.com/users/dlaehnemann/followers","following_url":"https://api.github.com/users/dlaehnemann/following{/other_user}","gists_url":"https://api.github.com/users/dlaehnemann/gists{/gist_id}","starred_url":"https://api.github.com/users/dlaehnemann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlaehnemann/subscriptions","organizations_url":"https://api.github.com/users/dlaehnemann/orgs","repos_url":"https://api.github.com/users/dlaehnemann/repos","events_url":"https://api.github.com/users/dlaehnemann/events{/privacy}","received_events_url":"https://api.github.com/users/dlaehnemann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-12T20:21:19Z","updated_at":"2015-11-13T12:26:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/samtools/bcftools/pulls/352","html_url":"https://github.com/samtools/bcftools/pull/352","diff_url":"https://github.com/samtools/bcftools/pull/352.diff","patch_url":"https://github.com/samtools/bcftools/pull/352.patch"},"body":"Plotting of sample names instead of sample ID numbers (flags -s/--sample-names) in plot-vcfstats did not work as the first input to plt.xticks in <prefix>-plot.py was an array of strings instead of an array of integers for all by-sample plots. A simple call of int() around the row[0] argument in the list comprehension fixes that."},"comment":{"url":"https://api.github.com/repos/samtools/bcftools/issues/comments/156418870","html_url":"https://github.com/samtools/bcftools/pull/352#issuecomment-156418870","issue_url":"https://api.github.com/repos/samtools/bcftools/issues/352","id":156418870,"user":{"login":"dlaehnemann","id":1379875,"avatar_url":"https://avatars.githubusercontent.com/u/1379875?v=3","gravatar_id":"","url":"https://api.github.com/users/dlaehnemann","html_url":"https://github.com/dlaehnemann","followers_url":"https://api.github.com/users/dlaehnemann/followers","following_url":"https://api.github.com/users/dlaehnemann/following{/other_user}","gists_url":"https://api.github.com/users/dlaehnemann/gists{/gist_id}","starred_url":"https://api.github.com/users/dlaehnemann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlaehnemann/subscriptions","organizations_url":"https://api.github.com/users/dlaehnemann/orgs","repos_url":"https://api.github.com/users/dlaehnemann/repos","events_url":"https://api.github.com/users/dlaehnemann/events{/privacy}","received_events_url":"https://api.github.com/users/dlaehnemann/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T12:26:15Z","updated_at":"2015-11-13T12:26:15Z","body":"From what I can see, the underlying matplotlib-function set_xticks has always asked for a list of floats. And I wouldn't think that python does implicit type conversions (string to float) in any versions?!\r\nWhile in this case, these numbers should always be integers, a more flexible solution might also be to use float() instead of int()."}}