I am plotting two functions in two variables and one of them is a piecewise function as given below. I am trying to get different colors for each of the sub-function of the piecewise function.
func1 = -(Subscript[n, 1]^2 + Subscript[n, 2]^2) + 100
cb1[[1]] = 1.1245;
cb2[[1]] = 0.7153;
p1 =
Plot3D[{func1,
Piecewise[{{cb1[[1]] + 100,
Subscript[n, 1] <= 5 && Subscript[n, 2] <= 5}}, cb2[[1]]] +
75}, {Subscript[n, 1], 0, 10}, {Subscript[n, 2], 0, 10},
AxesLabel -> Automatic]
The entire piecewise function is in color blue as shown in the figure. Is there a way to have sub-functions in different colors? Also, is there way to have the origin on the bottom left?