Skip to main content

No project description provided

Project description

Easy Histogram

This is a very small python package used to make histograms in python, and optionally plot them with matplotlib. The underlying histogramming tool is from numpy. This provides a very handy wrappers around them to easily make common histograms in 1d and 2d and plot with nice labels.

Installation

$ pip install easyhist

Usage

You can import the library and make histograms and plot them(optionally)

import numpy as np
import matplotlib.pyplot as plt
import easyhist as eh


# initialize data
x = np.random.normal(0,1,10000)


# make histogram
h = eh.Hist1D(x,bins='auto')


# This hist object contains histogram. If you want to plot it
fig,ax = plt.subplots(1,1,figsize=(12,6))

h.plot(ax)

# h.plot(ax) will plot the histogram on the matplotlib axis.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easyhist-0.1.0.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

easyhist-0.1.0-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page