Change color of alcoves in root system

asked 2025-09-19 16:17:02 +0200

herron.ggt gravatar image

updated 2025-09-29 15:13:02 +0200

dan_fulea gravatar image

I figured out how to change the panel colors of specific alcoves, but I want to change the color of the alcoves themselves. I want to make the alcoves in the list [S[0], S[1], S[2], S[0]*S[2]*S[1], identity] green. Below is my code just making the panels green.

import coxeter

L = RootSystem(["A",2,1]).ambient_space()
plot_background = L.plot(fundamental_chamber=True,roots=False,coroots=False,\
                           fundamental_weights=False,)

W = L.weyl_group()
S = W.simple_reflections()
identity = W.from_reduced_word([])
alcoves = [S[0],S[1],S[2], S[0]*S[2]*S[1], identity]
color = lambda i: "green"


plot_alcoves = L.plot(fundamental_chamber=False,roots=False,coroots=False,\
                        fundamental_weights=False,reflection_hyperplanes=False,\
                        alcoves=alcoves,color=color,alcove_labels=True)

(plot_background + plot_alcoves).show(frame=False, axes=False)
edit retag flag offensive close merge delete