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)