« Return to Thread: Conditional plotting

Re: Conditional plotting

by Thomas Sefzick :: Rate this Message:

Reply to Author | View in Thread

the relevant values (columns 1,2,3,4,5,23,53,54) are:
01/6/2009 981.0 990.2 974.1 980.0 ... 10 ... 981.5000000000001 915.1
02/6/2009 976.9 988.3 970.5 984.4 ... 10 ... 981.5000000000001 915.1
03/6/2009 983.2 992.1 961.5 965.6 ... 10 ... 981.5000000000001 925.2
04/6/2009 964.0 983.4 962.0 982.3 ... 10 ... 981.5000000000001 925.2
05/6/2009 981.4 985.0 953.8 962.6 ... 10 ... 981.5000000000001 925.2

we expect the candlesticks and below a line with y-values of 915.1 or 925.2

and that's exactly what i get when executing

gnuplot> plot "$1ind" using 1:2:3:4:5 notitle with candlesticks lt 7, "" using 1:($23<0?$53:1/0) notitle with line lt 3, "" using 1:($23>0?$54:1/0) notitle with line lt 1

test.gif

babelproofreader wrote:
Here are five typical lines of my data file.

01/6/2009,981,990.2,974.1,980,981.5161904761907,977.8634920634918,976.4509379509378,972.7449417249413,973.1708957708959,970.8045765998713,969.874981551425,969.8164172808349,967.3717362781269,967.7014375983559,967.4926495442788,967.5695752612323,967.7580507275375,967.7650377834991,968.5911680111261,969.1000327864756,6,10,979.8482721088438,949.1229105992925,30.72536150955131,29.16111133597793,16,8,4,3,20,31.87708940070747,41.07708940070751,24.97708940070749,30.87708940070747,968.9,955.8000000000001,935.8000000000001,951.5,994.2,1006.9,1021,1011.3,22.18633247660577,-22.18633247660577,44.37266495321153,-44.37266495321153,971.3092430758983,926.9365781226867,993.495575552504,904.750245646081,981.5000000000001,915.1,948.3000000000001,107180,388594
02/6/2009,976.9,988.3,970.5,984.4,979.4780952380954,980.6412698412695,977.9594083694083,974.0859207459207,974.4334332334334,972.8167140702437,972.256020821759,972.2350534065373,971.2134034428465,971.2706366087696,971.2810065460843,971.1322705400705,970.8529843880906,970.8861093016276,973.7118917300224,974.9157640605372,4,10,980.3621768707487,954.5421960608719,25.81998080987686,30.72536150955131,16,8,4,1,21,22.35780393912811,33.75780393912808,15.95780393912813,29.85780393912811,972.8000000000001,964.1,950.8000000000001,961.3000000000001,989.5000000000001,997.9000000000001,1007.3,1000.9,22.74785710630949,-22.74785710630949,45.49571421261897,-45.49571421261897,977.2900531671814,931.7943389545624,1000.037910273491,909.0464818482529,981.5000000000001,915.1,948.3000000000001,96287,391057
03/6/2009,983.2,992.1,961.5,965.6,976.5723809523812,979.483333333333,977.1325974025974,974.5348251748251,974.7011322011327,974.2831017022195,974.1319399568043,974.1607224257868,975.080897471782,974.7874722555125,975.0730129390397,974.6544697496743,973.8124942350004,973.8758533711829,979.0039072324762,980.9977120785881,0,10,976.5660136054424,959.1288575673221,17.4371560381203,25.81998080987686,15,7.5,3.75,2,22,24.07114243267791,32.97114243267789,2.371142432677864,6.471142432677887,960.2,946.8000000000001,926.2,942.4,986.2,999.2,1013.7,1003.8,23.13623985217456,-23.13623985217456,46.27247970434912,-46.27247970434912,982.2650974194967,935.9926177151476,1005.401337271671,912.856377862973,981.5000000000001,925.2,953.3500000000001,135432,395923
04/6/2009,964,983.4,962,982.3,972.7695238095235,974.5333333333335,973.9705050505045,974.0916550116549,973.9739926739933,975.2037394957989,975.4481275491307,975.5398180093207,978.9696180568025,978.2410750139738,978.8619315266055,978.1268068287104,976.6213288392386,976.719222769247,984.4670135062997,987.3499441800049,-04,10,972.7768163265305,962.6689205974092,10.10789572912133,17.4371560381203,16,8,4,3,23,1.331079402590852,20.73107940259083,-00.6689205974091479,19.63107940259081,963,949.6,929,945.2,989.0000000000001,1002,1016.5,1006.6,22.50358175792421,-22.50358175792421,45.00716351584843,-45.00716351584843,985.1725023553333,940.165338839485,1007.676084113258,917.6617570815607,981.5000000000001,925.2,953.3500000000001,124373,401699
05/6/2009,981.4,985,953.8,962.6,968.1142857142856,965.7912698412697,968.4731313131309,972.7564102564098,972.2520146520158,975.5786274509807,976.1499721913223,976.3187338278423,982.8749648897112,981.6205753596079,982.6410251121608,981.5399157159369,979.2642367716271,979.4011702729788,990.1010095396858,993.9765277043407,-04,10,968.111700680272,965.2080879631088,2.903612717163117,10.10789572912133,16,8,4,4,24,16.19191203689114,19.79191203689117,-11.40808796310888,-02.608087963108812,954,940.3000000000001,919.3000000000001,935.8000000000001,980.5000000000001,993.8000000000001,1008.6,998.4000000000001,21.90421689233587,-21.90421689233587,43.80843378467175,-43.80843378467175,987.1123048554447,943.303871070773,1009.016521747781,921.3996541784371,981.5000000000001,925.2,953.3500000000001,152881,401699

 « Return to Thread: Conditional plotting