Gray codes in karnaugh maps
The definition of the outputs shown within a karnaugh map is defined by a forumla or truth table, of which the axis values are the inputs. In this example, 0 1 2 ... has apparently been used as arbitrary filler numbers.

Gray codes refer only to the method by which the axis are labeled.

Here are some clear examples of how the tables are used.