I am using RegionPlot to plot a linear program
maximize 30x1+25x2
with the constraints
x1+x2 <= 10
x1 <= 6
x2 <= 9
5x1 + 2x2 <= 30
x1,x2 >= 0
Using the following command
RegionPlot[ x1 + x2 <= 10 &&
x1 <= 6 &&
x2 <= 9 &&
x1 >= 0 &&
x2 >= 0,
{x1, 0, 10}, x2, 0, 10},
ColorFunction -> Function[{x1, x2}, 30 x1 + 25 x2],
ColorFunctionScaling -> True]
this is my result

How can i change the color an scale it all over the region ? I tried ColorFunctionScaling->True but this does not change anything.






RegionPlot[]code as text. Thanks – Dr. belisarius Nov 12 '14 at 16:08