1#
2# Demo of using rescaled images to construct a bar chart
3#
4if (!strstrt(GPVAL_COMPILE_OPTIONS,"+GD_PNG")) \
5    print ">>> Skipping demo <<<\n" ; \
6    print "This copy of gnuplot was built without support for loading png images" ;\
7    exit ;
8
9reset
10set title "Building Code Height Limits"
11unset key
12
13set xrange [ -10 : 160 ]
14set yrange [   0 : 200 ]
15set y2range[   0 : 200 ]
16
17set y2tics
18set grid y
19
20set xtics   ("NE" 12.0, "S" 42.0, "Downtown" 72.0, "Suburbs" 127.0)  scale 0.0
21
22plot 'bldg.png' binary filetype=png origin=(60,0) dx=0.5 dy=1.5 with rgbimage, \
23     'bldg.png' binary filetype=png origin=(0,0) dx=0.5 dy=1 with rgbimage, \
24     'bldg.png' binary filetype=png origin=(30,0) dx=0.5 dy=0.7 with rgbimage, \
25     'bldg.png' binary filetype=png origin=(100,0) dx=0.5 dy=0.35 with rgbimage, \
26     'bldg.png' binary filetype=png origin=(125,0) dx=0.5 dy=0.35 with rgbimage
27
28pause -1 "Hit return to continue"
29reset
30