Skip to main content

A Python script to plot normalized histogram using Python3-Matplotlib

Project description


Plot histogram using Matplotlib

matHist is a Python package to plot normalized histogram using Matplotlib.

It reads a data file which has only one column with a string as header. It the data file doesn't contain a header, it will skip the first line.




  1. python3 or higher
  2. Python3-numpy
  3. Python3-matplotlib

Using PyPI

Use the package manager pip to install matHist.

pip install matHist

Using source code

git clone
tar -xvf matHist-X.X.X
cd matHist-X.X.X
python3 install --user


import matHist
matHist.mat_hist_func("input_file.dat", "output_file.png") 

It will ask for few inputs to plot histogram like number of bins (bins), bar width, histogram color etc.


Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.



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

matHist-0.1.1.tar.gz (3.4 kB view hashes)

Uploaded source

Built Distribution

matHist-0.1.1-py3-none-any.whl (4.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page