This repository contains Python code for visualizing shapefiles related to Islamabad, utilizing geopandas and matplotlib libraries. The code reads and plots geographic data from multiple shapefiles, presenting them in a structured grid layout for easy analysis and comparison.
The Python script included (visualize_shapefiles.py) demonstrates how to:
- Load shapefiles from a specified directory.
- Create a grid of subplots to display individual shapefiles.
- Customize subplot appearance: setting titles, borders, and colors.
- Adjust aspect ratios for consistent visualization.
- Requirements: Ensure geopandas, matplotlib, and their dependencies are installed.
- Shapefile Directory: Update the file path variable to point to your shapefile directory.
- Run the Code: Execute the script to visualize the Islamabad-related shapefiles.
The generated visualization consists of a 4x2 grid of subplots, each showcasing a different aspect of the Islamabad geographical data. The resulting images provide insights into various geographic features and divisions within Islamabad.
The script includes an option to save the combined plot as a PNG image for future reference or analysis.
Feel free to explore, modify, and utilize this code for visualizing geographic data related to Islamabad!