I want to plot a scatter plot over a map separated by divisions. So far I have tried the following.
import os
import matplotlib.pyplot as plt
import pandas as pd
import geopandas as gpd
import numpy as np
fPath = 'shape/bgd_adm_bbs_20201113_SHP/bgd_admbnda_adm2_bbs_20201113.shp'
bgd = gpd.read_file(fPath)
ax = bgd.plot(figsize=(15,15),column='ADM1_EN', legend=True)
bgd_admbnda_adm2_bbs_20201113.shp has been found in github. It produces this figure.
Here, there are 8 divisions 'Barishal', 'Chattogram', 'Dhaka', 'Khulna', 'Rajshahi', 'Rangpur', 'Sylhet', 'Mymensingh'. For every division, there are some numeric values(not latitude, longitude values). E.g. for Dhaka division [73.13 77.64 74.32 82.48 84.21 88.23 89.90]. For your convenience, I have attached the files in github.
Now, I split the values based on value range. E.g. i) 70-80: [73.13 77.64 74.32], ii) 80-90: [82.48 84.21 88.23 89.90]. Now, I want to draw a scatter plot of two categories of values on any places of Dhaka division with two colors such as this image. I have attached another expected output image for your reference
.
Thanks in advance.
