In[]:=
z=x+y;​​Plot3D[Re[
2
z
+1],{x,-2,2},{y,-2,2},ColorFunctionFunction[{x,y,z},Hue[Im[
2
z
+1]]],PlotLegendsBarLegend[Hue[-4,4]]]
Out[]=