# Define colors called "white", "red", "green", "blue", and "black" COLOR white 255 255 255 COLOR red 255 0 0 COLOR green 0 255 0 COLOR blue 0 0 255 COLOR black 0 0 0 GRADIENT blue2red 0 0 255 255 0 0 # Draw the background PEN white 1 no RECT 0 0 1 1 # Draw the US map (black border lines) REGION usa 0.0 0.28 1.0 0.72 -134 50 -57 24.5 PEN black 1 yes PLOT usa gis/us_state.dat # Pre-load ZIP data ZIP gis/zip_location.dat # Paint background color "green" for Indiana # with any zip code within the state (e.g. 47405) FILL_AREA usa z:47405 green # Define nodes on specific locations using zip codes ABS_NODE red red 30 usa z:02114 #Harvard Univ ABS_NODE red red 20 usa z:94103 #UNIV CALIF SAN FRANCISCO # Draw the nodes # size 0 by default to prevent from drawing nodes for past locations DRAW_LOC red red 0 0 # Define a path (edge) ABS_PATH 1 1 blue2red 3 usa z:02114 z:94103 # Draw the path (edge) PEN blue2red 2 no DRAW_PATH blue2red 0 0 # Pre-load label fonts FONT label font/font.ttf # Define labels # DR: bottom right; UL: upper left; LABEL usa z:02114 DR HARVARD UNIV LABEL usa z:94103 UL UNIV CALIF SF # Draw the labels PEN blue 1 yes DRAW_LABEL label 0.02 blue