How to use the same colour scheme on two different plots?

Hi. I created two plots and would like to use the same colour scheme for both of them. However the plots use different colour schema (colours for categories) for graphs. I was trying to get my head around to fix this but to no avail so far. How can I force the plotly to use the same colors for both graphs? Iā€™d greatly appreciate any help!

Hi.

You can fix this by explicitly setting the colors when you define each figure.