Welcome to the Pi Numbers Visualization with Heatmap project! This README provides an overview of the project, its purpose, features, how to set it up, and usage instructions.
The primary goal of this project is to visualize the distribution of digits in the mathematical constant Pi (π) using a heatmap. By doing so, users can gain insights into the distribution and randomness of Pi's decimal representation.
- Pi Number Generation: Generate an arbitrary number of Pi digits using efficient algorithms.
- Heatmap Visualization: Create a heatmap to visualize the distribution of digits in Pi.
- Customizable Parameters: Adjust settings such as the number of digits to generate and heatmap colors.
- Data Export: Export the generated Pi digits and heatmap data for further analysis.
This project leverages the following technologies:
- Python: The primary programming language for generating Pi digits and processing data.
- Matplotlib: A popular Python library for creating visualizations, used for generating the heatmap.
- NumPy: A fundamental package for scientific computing with Python, used for data manipulation.
- math_pi Library: A library for generating Pi digits (replace with the library used).
To set up and run this project locally, follow these steps:
-
Clone the Repository:
git clone https://github.com/yourusername/pi-numbers-heatmap.git cd pi-numbers-heatmap
-
Install Dependencies: Use pip to install the required Python dependencies
pip install -r requirements.txt # Add other dependencies if needed
-
Run the Code: Execute the Python script to generate Pi digits and create the heatmap
python main.py
-
View the Heatmap: Open the generated heatmap image in your preferred image viewer or Matplotlib window.
- Adjust Parameters: Customize the script to change the number of Pi digits to generate, heatmap colors, and any other parameters as needed.
- Run the Script: Execute the Python script to generate the Pi digits and heatmap.
- Analyze the Heatmap: Explore the generated heatmap to visualize the distribution of Pi digits.
- Export Data: Export the generated Pi digits and heatmap data for further analysis if desired.