Skip to content

Latest commit

 

History

History
66 lines (49 loc) · 1.47 KB

File metadata and controls

66 lines (49 loc) · 1.47 KB

📈 Interpolation Visualization Tool

A simple Python project to visualize interpolation on a graph in real-time using interactive mouse input.


📍 Background & Motivation

This project was created as part of my learning process in numerical methods and data visualization.

The main goal is to understand how interpolation works by applying it directly to a graph using user-defined points. By interacting with the plot, users can intuitively see how the interpolation curve changes when points are added or removed.

This project helps bridge theoretical concepts with practical implementation in Python.


✨ Features

  • 🖱️ Left-click to add a point on the graph
  • 🖱️ Right-click on a point to remove it
  • 📊 Automatic interpolation with minimum 3 points
  • 🔄 Real-time graph update
  • 📈 Smooth visualization of interpolated curves

🛠️ Technologies Used

  • Python
  • Matplotlib
  • NumPy
  • SciPy (for interpolation)

▶️ How to Run the Project

git clone https://github.com/tegar17/interpolation.git
cd interpolation

Create and Activate Virtual Environment (Optional)

python -m venv .venv

Windows:

.venv\Scripts\activate

Linux / macOS:

source .venv/bin/activate

Install Dependencies

pip install -r requirements.txt

Run the Program

python main.py

🎞️ Preview

preview-interpolation.mp4