A growing collection of simple Python scripts to visualize common flows in Supply Chain Management (SCM) using Matplotlib.
Provide visual, data-driven examples of real-world SCM challenges and metrics — from warehouse flow to lead time variability — using clean, well-structured Python code.
Each example will live in its own folder with a self-contained Python script and visualization.
📊 Transportation Cost Analysis
-
Analyze transportation costs across different routes
-
Use scatter plots to compare cost vs distance
-
📁 Folder: transportation-cost-analysis/
-
📄 Script: transport_cost.py
📈 Product Flow Through Warehouse
-
A line chart showing incoming and outgoing product quantities over one week.
-
📁 Folder:
product-flow-analysis/ -
📄 Script:
productflow.py
📦 Inventory Levels Over Time
-
Simulate daily stock levels
-
Show reorder points & safety stock
-
Visualize with line charts
-
📁 Folder: inventory-levels-over-time/
-
📄 Script: inventory_sim.py
🚚 Order Fulfillment Timeline
-
Visualize order entry → processing → shipping
-
Use horizontal timeline (e.g., Gantt-style or step lines)
-
📁 Folder: order-fulfillment-timeline/
-
📄 Script: order_timeline.py
⏱️ Lead Time Variability
-
Compare supplier lead times
-
Use bar charts with error bars to show variability and risk
-
📁 Folder: lead-time-variability/
-
📄 Script: leadtime_chart.py
⚖️ Demand vs Capacity
-
Match incoming orders vs available capacity
-
Spot bottlenecks with comparative bar charts
-
📁 Folder: demand-vs-capacity/
-
📄 Script: capacity_balance.py
🔁 Cycle Time Analysis
-
Show time from raw material to final product
-
Use stacked bars or time-flow graphs
-
📁 Folder: cycle-time-analysis/
-
📄 Script: cycle_time.py
- Python 3.12+
- Matplotlib
- Virtual Environment (
.venv) - VS Code (recommended)
# Clone the repo
git clone https://github.com/YOUR_USERNAME/logistics-analysis
# Navigate into a folder and activate your virtual environment
cd product-flow-analysis
python ../.venv/Scripts/activate
# Run a script
python [script_name.py] e.g. python productflow.py 





