Multicolor plotres based on flag