{"action":"closed","issue":{"url":"https://api.github.com/repos/wdecoster/NanoPlot/issues/22","repository_url":"https://api.github.com/repos/wdecoster/NanoPlot","labels_url":"https://api.github.com/repos/wdecoster/NanoPlot/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/wdecoster/NanoPlot/issues/22/comments","events_url":"https://api.github.com/repos/wdecoster/NanoPlot/issues/22/events","html_url":"https://github.com/wdecoster/NanoPlot/issues/22","id":269947186,"number":22,"title":"ValueError: `bins` should be a positive integer","user":{"login":"jonbra","id":16081233,"avatar_url":"https://avatars1.githubusercontent.com/u/16081233?v=4","gravatar_id":"","url":"https://api.github.com/users/jonbra","html_url":"https://github.com/jonbra","followers_url":"https://api.github.com/users/jonbra/followers","following_url":"https://api.github.com/users/jonbra/following{/other_user}","gists_url":"https://api.github.com/users/jonbra/gists{/gist_id}","starred_url":"https://api.github.com/users/jonbra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonbra/subscriptions","organizations_url":"https://api.github.com/users/jonbra/orgs","repos_url":"https://api.github.com/users/jonbra/repos","events_url":"https://api.github.com/users/jonbra/events{/privacy}","received_events_url":"https://api.github.com/users/jonbra/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-10-31T12:53:30Z","updated_at":"2017-10-31T13:50:40Z","closed_at":"2017-10-31T13:50:40Z","author_association":"NONE","body":"Hi,\r\n\r\nI am running NanoPlot on a Mac and installed it using pip3. I get the follwing error trying to plot on some fastq-files:\r\n\r\n```\r\nbio89093:~ jonbra$ NanoPlot --fastq /Users/jonbra/Dropbox/Prosjekter/Hydrurus/MinION/2017-10-17_Second_run/workspace/pass/fastq_runid_651403895f17581f06a733fbd7bcdf87c98f9b7c_0.fastq --loglength -o Desktop/\r\nFontconfig warning: ignoring UTF-8: not a valid region tag\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/NanoPlot\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/local/lib/python3.6/site-packages/nanoplot/NanoPlot.py\", line 61, in main\r\n    make_plots(datadf, settings, args)\r\n  File \"/usr/local/lib/python3.6/site-packages/nanoplot/NanoPlot.py\", line 260, in make_plots\r\n    log=settings[\"logBool\"])\r\n  File \"/usr/local/lib/python3.6/site-packages/nanoplotter/nanoplotter.py\", line 284, in length_plots\r\n    color=color)\r\n  File \"/usr/local/lib/python3.6/site-packages/seaborn/distributions.py\", line 218, in distplot\r\n    color=hist_color, **hist_kws)\r\n  File \"/usr/local/lib/python3.6/site-packages/matplotlib/__init__.py\", line 1710, in inner\r\n    return func(ax, *args, **kwargs)\r\n  File \"/usr/local/lib/python3.6/site-packages/matplotlib/axes/_axes.py\", line 6207, in hist\r\n    m, bins = np.histogram(x[i], bins, weights=w[i], **hist_kwargs)\r\n  File \"/usr/local/lib/python3.6/site-packages/numpy/lib/function_base.py\", line 717, in histogram\r\n    '`bins` should be a positive integer.')\r\nValueError: `bins` should be a positive integer.\r\nbio89093:~ jonbra$\r\n```"}}
{"actor":{"display_login":"wdecoster"}}