Context Navigation


Changeset 148


Ignore:
Timestamp:
Dec 31, 2007, 4:41:41 PM (18 years ago)
Author:
neil.c.c.brown
Message:

Changing the inequality-tightening graphs to have the thick lines at their borders

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/trunk/omega-test-slides/inequality-tightening.gnu

    r134 r148
    11load "2d-gnuplot-settings.inc"
    22
    3set key top right
    3set terminal png truecolor size 900,600 enhanced rounded font "FreeSansBold" 12
    4
    5set key top right outside
    46
    57#The points are a hack to get the pattern fill to fill the whole of the rest of the graph
    68
    79set output "inequality-tightening-1.png"
    8(削除) set multiplot (削除ここまで)
    9(削除) (削除ここまで)
    10(削除) #Plot the points: (削除ここまで)
    11(削除) plot "points-1-3.inc" with points title "" pt 1 ps 2 lt -1 (削除ここまで)
    1210
    1311# Show a non-normalised inequality:
    1412
    15plot "-" with filledcurves above y1=0 title "{/*1.5 5y <= 19 - 5x}"
    13plot "-" with filledcurves above y1=0 title "{/*1.5 5y <= 19 - 5x}", \
    14 (19 - 5*x)/5 with lines ls 1 title "", \
    15 "points-1-3.inc" with points title "" pt 1 ps 2 lt -1
    16160 3.8
    17173.8 0
    2222#Tightened version:
    2323
    24(削除) unset multiplot (削除ここまで)
    2524set output "inequality-tightening-2.png"
    26(削除) set multiplot (削除ここまで)
    2725
    28#(削除) Plot the points (削除ここまで):
    26#(追記) Show the normalised inequality (追記ここまで):
    2927
    30plot "points-1-3.inc" with points title "" pt 1 ps 2 lt -1
    31
    32# Show a non-normalised inequality:
    33
    34plot "-" with filledcurves above y1=0 title "{/*1.5 y <= 3 - x}"
    28plot "-" with filledcurves above y1=0 title "{/*1.5 y <= 3 - x}", \
    29 (3 - x) with lines ls 1 title "", \
    30 "points-1-3.inc" with points title "" pt 1 ps 2 lt -1
    35310 3
    36323 0
    4036# Showing tightening to unsolveability:
    4137
    42(削除) unset multiplot (削除ここまで)
    4338set output "inequality-tightening-3.png"
    44(削除) set multiplot (削除ここまで)
    4539
    46plot "points-1-3.inc" with points title "" pt 1 ps 2 lt -1
    47
    48plot "-" with filledcurves below y1=5 title "{/*1.5 5y >= 16 - 5x}", "-" with filledcurves above y1=0 title "{/*1.5 5y <= 19 - 5x}"
    40plot "-" with filledcurves below y1=5 title "{/*1.5 5y >= 16 - 5x}", \
    41 "-" with filledcurves above y1=0 title "{/*1.5 5y <= 19 - 5x}", \
    42 (16 - 5*x)/5 with lines ls 1 title "", \
    43 (19 - 5*x)/5 with lines ls 2 title "", \
    44 "points-1-3.inc" with points title "" pt 1 ps 2 lt -1
    45
    49460 3.2
    50473.2 0
    5754e
    5855
    59(削除) unset multiplot (削除ここまで)
    6056set output "inequality-tightening-4.png"
    61(削除) set multiplot (削除ここまで)
    6257
    63plot "points-1-3.inc" with points title "" pt 1 ps 2 lt -1
    64
    65plot "-" with filledcurves below y1=5 title "{/*1.5 y >= 4 - x}", "-" with filledcurves above y1=0 title "{/*1.5 y <= 3 - x}"
    58plot "-" with filledcurves below y1=5 title "{/*1.5 y >= 4 - x}", \
    59 "-" with filledcurves above y1=0 title "{/*1.5 y <= 3 - x}", \
    60 (4 - x) with lines ls 1 title "", \
    61 (3 - x) with lines ls 2 title "", \
    62 "points-1-3.inc" with points title "" pt 1 ps 2 lt -1
    66630 4
    67644 0
Note: See TracChangeset for help on using the changeset viewer.

AltStyle によって変換されたページ (->オリジナル) /