The property "ColorOrder" is not getting updated because high level functions such as "plot" reset "ColorOrder" every time plot function is called.
In order to suppress this behavior, there is a "nextplot" property which can be used. This by default is set to "replace" which would reset the "ColorOrder" of the next plot to default. However setting it to "replacechildren" would save the "ColorOrder" property that you have specified explicitly.
Below is the change required to make changes to "ColorOrder" property:
>> set(gca,'ColorOrder',cOrder,'nextplot','replacechildren')
Review the documentation for these properties as well from the below link:
Best Answer