Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Heart Curve Plot

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.

Preview

The notebook generates a heart-shaped curve from a parametric mathematical expression and visualizes it with Matplotlib.

Features

  • Heart-shaped mathematical curve visualization
  • Python-based implementation
  • Matplotlib plotting
  • Google Colab compatible
  • Jupyter Notebook format
  • Simple and beginner-friendly code structure

Technologies

  • Python
  • Matplotlib
  • NumPy
  • Jupyter Notebook
  • Google Colab

Getting Started

Option 1: Run with Google Colab

  1. Open the notebook file in this repository.
  2. Click Open in Colab, or upload the notebook to Google Colab.
  3. Run all cells.

Option 2: Run Locally

  1. Clone the repository:

    git clone https://github.com/Mahdi-sr95/Heart_curve_plot.git
  2. Move into the project directory:

    cd Heart_curve_plot
  3. Install the required packages:

    pip install numpy matplotlib jupyter
  4. Start Jupyter Notebook:

    jupyter notebook
  5. Open the notebook and run all cells.

Mathematical Idea

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

Project Structure

Heart_curve_plot/
├── Heart_curve_plot.ipynb
└── README.md

Author

Mahdi Soltani Renani

License

This project is available under the MIT License. See the LICENSE file for details.