Hi! I'm plotting an optimization problem and i want to fill the bounded
region (polygon) between restrictions but i don't know how to make it, I've
seen this link http://gnuplot.sourceforge.net/demo_svg/fillbetween.html but
I don't understand anything. The code is this one:
set style fill solid 1.0
set title 'Problema de Optimizacion'
set multiplot
set border 3
set xtics nomirror
set ytics nomirror
set parametric
const1=300
const2=0
set trange [0:450]
set xrange [0:500]
set yrange [0:500]
set size ratio 1.0
plot const1,t title 'x = 300',const2,t title 'x = 0' lw 4
unset parametric
set key left top
plot 400 title 'y = 400' lc rgb 'blue',\
500-x title 'y=500-x' lc rgb 'brown', 0 title 'y=0' lc rgb 'orange' lw 4
set nomultiplot
pause -1
And I want to colour the region that i indicate at the next image:
<http://gnuplot.10905.n7.nabble.com/file/n17581/programacionlineal.png>
The mathematical problem is this one:
f(x,y)=450y+600x
s.a.
y<=400
x<=300
y+x<=500
y>=0
x>=0
Thanks
--
View this message in context: http://gnuplot.10905.n7.nabble.com/How-can-I-coloured-a-region-bounded-by-functions-tp17581.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|