I might have time later today or tomorrow, but you’ll need to provide a full dataset - meaning a Revit model to test on, your current dyn including notations for any packages in use, and the python code posted here via the preformatted text setup. The nature of the resolution (editing python code which requires calling the Revit API) means I have to actually be at my computer to trouble shoot effectively, so I can’t work during my commute, lunch or coffee break(s). As a result if it takes me any measurable amount of time to get to your current stumbling block then I likely won’t have a solution for awhile (have to catch up after vacation and have two large presentations to prepare for).
As an alternative presented in the name of time, have you considered other graphical means of presenting the data in question, in this case meaning a filled pattern and a legend on the sheet? I personally prefer that method of communicating this type of data as it not only conveys the content but gives a clearer picture when standing on sight and trying to confirm panels were installed in the correct location.