Someone can simply use codes like following to highlight provinces in the graph.
from pysvg import parser
svg=parser.parse('China_Blank_Map_with_Province_Names.svg')
SW_provinces=['Yun_Nan','Gui_Zhou','Si_Chuan','Guang_Xi','Xi_Zang'] #Five South_West Provinces in China.
for i,province in enumerate(SW_provinces):
province=svg.getElementByID(province)[0]
style=province.get_style()
new_style=style.replace('fill:#808080;','fill:#00%x900;'%(i+7))
province.set_style(new_style)
svg.save('tmp.svg')
Note: Since there are two Shan_Xi in China, Shan1_Xi(the east one) and Shan3_Xi(the west one) are used.
tae share – tae copy, distribute an transmit the wirk
tae remix – tae adapt the wirk
Unner the follaein condeetions:
attribution – Ye must attribute the wirk in the manner specified bi the author or licensor (but nae in ony way that suggests that thay endorse ye or yer uise o the wirk).
share alik – If ye alter, transform, or big upon this wirk, ye mey distribute the resultin wirk anly unner the same or seemilar license tae this ane.