An interactive heart-shaped curve visualization created with Python, Matplotlib, and Google Colab.
This small project demonstrates how mathematical equations can be transformed into a visually appealing plot using Python. It is intended as a simple exercise in curve plotting, mathematical visualization, and notebook-based programming.
The notebook generates a heart-shaped curve from a parametric mathematical expression and visualizes it with Matplotlib.
- Heart-shaped mathematical curve visualization
- Python-based implementation
- Matplotlib plotting
- Google Colab compatible
- Jupyter Notebook format
- Simple and beginner-friendly code structure
- Python
- Matplotlib
- NumPy
- Jupyter Notebook
- Google Colab
- Open the notebook file in this repository.
- Click Open in Colab, or upload the notebook to Google Colab.
- Run all cells.
-
Clone the repository:
git clone https://github.com/Mahdi-sr95/Heart_curve_plot.git
-
Move into the project directory:
cd Heart_curve_plot -
Install the required packages:
pip install numpy matplotlib jupyter
-
Start Jupyter Notebook:
jupyter notebook
-
Open the notebook and run all cells.
The heart shape is generated by sampling a mathematical curve over a range of values and plotting the resulting coordinates.
This project is a practical example of:
- Parametric curve plotting
- Mathematical visualization
- Numerical sampling
- Data visualization with Matplotlib
Heart_curve_plot/
├── Heart_curve_plot.ipynb
└── README.md
Mahdi Soltani Renani
- GitHub: @Mahdi-sr95
This project is available under the MIT License. See the LICENSE file for details.