SVG tool that colors chosen countries in the World Map, and crop-masks irrelevant areas.
Command line arguments variations are as follows:
-
python ColorWorldMap.py bilateral country1-country2
State two country names seperated by "-", where country names are corespondent to the index (but generally similar). The first will be colored green and the second orange. output file is "country1-country2 locator.svg" -
python ColorWorldMap.py bilateral country1-country2 instructions_file
same as bilateral except specifing colors in instructions_file. -
python ColorWorldMap.py all filename instructions_file
specify as many countries as you'd like in the instructions_file, all will be colored according to the first, or randomized color if wasn't specified. -
python ColorWorldMap.py filename instructions_file
define coloring freely. -
python ColorWorldMap.py index
to get index of countries.
instructions_file:
each line contains: country,color color is either #hex or literal css color name.
other language
you can specify a chosen language code by appending "-#CODE" to the mode name. eg. bilateral-he for Hebrew. Will look for match in wikidata to translate the name.