home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 846418243

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/4610#issuecomment-846418243 https://api.github.com/repos/pydata/xarray/issues/4610 846418243 MDEyOklzc3VlQ29tbWVudDg0NjQxODI0Mw== 14371165 2021-05-22T14:46:13Z 2021-05-22T14:46:13Z MEMBER

but pyplot.hist does both the bincounting and the plotting, so it might not be simple to do that.

Should be fine I think. Matplolib explains how to use np.histogram-like results in the weights-parameter: https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.hist.html python counts, bins = np.histogram(data) plt.hist(bins[:-1], bins, weights=counts)

Some reading if wanting to do the plot by hand: https://stackoverflow.com/questions/5328556/histogram-matplotlib https://stackoverflow.com/questions/33203645/how-to-plot-a-histogram-using-matplotlib-in-python-with-a-list-of-data

{
    "total_count": 1,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 1,
    "rocket": 0,
    "eyes": 0
}
  750985364
Powered by Datasette · Queries took 0.704ms · About: xarray-datasette