https://github.com/aminnj/yahist

1D and 2D histogram objects

https://github.com/aminnj/yahist

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.7%) to scientific vocabulary

Keywords

histogram matplotlib numpy plotly plotting
Last synced: 6 months ago · JSON representation

Repository

1D and 2D histogram objects

Basic Info
  • Host: GitHub
  • Owner: aminnj
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 9.08 MB
Statistics
  • Stars: 10
  • Watchers: 1
  • Forks: 3
  • Open Issues: 3
  • Releases: 0
Topics
histogram matplotlib numpy plotly plotting
Created over 6 years ago · Last pushed almost 2 years ago
Metadata Files
Readme

README.md

Yet another histogram

Python application PyPI Documentation Status Binder

bash pip install yahist

Examples (API docs)

Binder (static nbviewer if Binder is slow)

Overview

Histogram objects (1D and 2D) with easy manipulations (numpy), plotting (matplotlib), and fitting (scipy/iminuit).

```python import numpy as np from yahist import Hist1D

v = np.random.normal(0, 1, 1000) h = Hist1D(v, bins=100, label="data").rebin(2).normalize() h.plot(errors=True, ms=3) h.fit("peak * np.exp(-(x-mu)2 / (2*sigma2))") ```

```python import pandas as pd

df = pd.DataFrame(np.random.normal(0, 1, size=(10000, 2)), columns=["A", "B"])

h = Hist2D(df, bins="30,-3,3", threads=4) h.plot(logz=True, cmap="cividis") h.profile("x").plot(errors=True, color="C1", marker=".", label="x-profile") ```

Much more functionality is showcased in the example notebook, including * fitting (chi2 or likelihood) * interactive plots (via bokeh) * datetime inputs/axes * rebinning/subsetting * profiling/projecting 2D histograms * acceleration of 1D/2D histogram creation with boost-histogram * using the histogram as a lookup function * serialization to/from json

...and more.

Owner

  • Name: Nick Amin
  • Login: aminnj
  • Kind: user
  • Location: Austin, TX

@Soylent: sponsor me please

GitHub Events

Total
Last Year

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 189
  • Total Committers: 1
  • Avg Commits per committer: 189.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Nick Amin a****j@g****m 189

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 12
  • Total pull requests: 4
  • Average time to close issues: 1 day
  • Average time to close pull requests: about 1 hour
  • Total issue authors: 4
  • Total pull request authors: 2
  • Average comments per issue: 1.0
  • Average comments per pull request: 1.25
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 3
  • Average time to close issues: N/A
  • Average time to close pull requests: about 1 hour
  • Issue authors: 1
  • Pull request authors: 2
  • Average comments per issue: 1.0
  • Average comments per pull request: 1.33
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • aminnj (9)
  • mhl0116 (1)
  • hswanson13 (1)
  • jkguiang (1)
Pull Request Authors
  • aminnj (4)
  • jkguiang (2)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 2,480 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 2
  • Total versions: 45
  • Total maintainers: 1
pypi.org: yahist

Yet another histogram object with numpy and matplotlib

  • Versions: 45
  • Dependent Packages: 0
  • Dependent Repositories: 2
  • Downloads: 2,480 Last month
Rankings
Dependent packages count: 10.1%
Dependent repos count: 11.5%
Stargazers count: 17.1%
Average: 17.9%
Forks count: 22.6%
Downloads: 27.9%
Maintainers (1)
Last synced: 6 months ago

Dependencies

requirements.txt pypi
  • boost-histogram >=1.0
  • iminuit >=2
  • matplotlib *
  • numpy *
  • plotly *
  • scipy *
setup.py pypi
  • x.strip *
.github/workflows/python-app.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite