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.
بەھىرلەش – to copy, distribute and transmit the work
ئۆزگەرتىش – ئىجادىي ئەسەر
تۆۋەندىكى شەرتلەرگە چوقۇم ئەمەل قىلىڭ:
ئىمزا – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
ئوخشاش ئۇسۇلدا بەھىرلەش – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.