Skip to content

Color a map so that no two adjacent regions have the same color

Notifications You must be signed in to change notification settings

sebastianbeyer/mincolors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mincolor implements a greedy coloring algorithm for coloring regions of a map so that no two adjacent regions have the same color.

It can plot and save the resulting map (via matplotlib imshow) or export a cptfile for use with the Generic Mapping Tools.

usage

./mincolor.py <ncfile>

Export the .cpt file:

./mincolor.py <ncfile> -e

Requirements

  • numpy
  • networkx
  • matplotlib
  • netCDF4

About

Color a map so that no two adjacent regions have the same color

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages