boundaryNorm functionality for mapping based on values range and also occurance of external factors like flag

Hi all,

Just wanted to know how to go about when I have to do my color mapping
not only with respect to range of values on y-axis but also based on
some other conditions as well. i.e, say ( && &&

) where condition1 could be occurance of some event say,
a flag1 is set true and condition2 may be another flag2 set to false.
Just wanted to use my color mapping not only based on boundaries but

also on occurance of other events as well.
In this context do i have to modify the source of BoundaryNorm in
matplotlib function…?? Can you give me some insights into this.

Regards,

Ravikanth