|
From: babelproofreader <bab...@gm...> - 2009-06-05 18:58:01
|
If I have a CSV file with several columns of data running to thousands of lines, how would I plot a discontinuous line plot of data in column 2 dependent on a value in column 1? For example, I would only want to plot those data in column 2 if the corresponding line value in column 1 is greater/less than/equal to a given value. -- View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23893745.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: markjoe <na...@ma...> - 2009-06-05 20:06:03
|
this is very nice about gnuplot: plot file using 1:($1>0?$2:1/0) with histeps lt -1 lw 1 The 1/0 is to be read as plot nothing. Can be nested, gives powerful options Mark babelproofreader wrote: > > If I have a CSV file with several columns of data running to thousands of > lines, how would I plot a discontinuous line plot of data in column 2 > dependent on a value in column 1? For example, I would only want to plot > those data in column 2 if the corresponding line value in column 1 is > greater/less than/equal to a given value. > -- View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23894681.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: babelproofreader <bab...@gm...> - 2009-06-06 00:01:47
|
Mark, I'm afraid your solution isn't working for me. My script at the moment is reset set title "$1 Prices with Donchian Channels" set datafile separator "," set xdata time set timefmt "%d/%m/%Y" set grid plot "$1ind" using 1:2:3:4:5 notitle with candlesticks lt 7, \ "$1ind" using 1:($23<0?$53:1/0) notitle with line lt 3, \ "$1ind" using 1:($23>0?$54:1/0) notitle with line lt 1 Do you have any other suggestions? -- View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23897282.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2009-06-06 09:38:18
|
please provide some more information: - what do you mean by 'isn't working'? - how does the data file look like (post some lines as example)? - do you expect the plotted lines to have a gaps where the data are undefined (that's what gnuplot does) or do you want data points to be connected over undefined regions? babelproofreader wrote: > > Mark, > > I'm afraid your solution isn't working for me. My script at the moment is > > reset > > set title "$1 Prices with Donchian Channels" > set datafile separator "," > > set xdata time > > set timefmt "%d/%m/%Y" > set grid > > plot "$1ind" using 1:2:3:4:5 notitle with candlesticks lt 7, \ > "$1ind" using 1:($23<0?$53:1/0) notitle with line lt 3, \ > "$1ind" using 1:($23>0?$54:1/0) notitle with line lt 1 > > Do you have any other suggestions? > > -- View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23900211.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: babelproofreader <bab...@gm...> - 2009-06-06 13:23:58
|
please provide some more information: - what do you mean by 'isn't working'? plot "$1ind" using 1:2:3:4:5 notitle with candlesticks lt 7, \ - plots candlesticks as expected "$1ind" using 1:($23<0?$53:1/0) notitle with line lt 3, \ - plots nothing at all "$1ind" using 1:($23>0?$54:1/0) notitle with line lt 1 - plots a continuous line with a zero value - how does the data file look like (post some lines as example)? column 1 consists of dates in the format 29/5/2009 column 23 consists of numbers ranging between -10 and 10 columns 53 and 54 consist of values that are the same as the highs(53) and lows(54) of the candlestick plot - do you expect the plotted lines to have a gaps where the data are undefined (that's what gnuplot does) or do you want data points to be connected over undefined regions? I expect/would like to plot data in column 53 when the data in column 23 is less than zero I expect/would like to plot data in column 54 when the data in column 23 is greater than zero and when these conditions are not true the data in columns 53 and 54 should not be plotted i.e. there should be gaps in the plots. -- View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23901876.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2009-06-06 14:32:55
|
please post a few lines of your data file. Thomas Sefzick wrote: > > please provide some more information: > - what do you mean by 'isn't working'? > plot "$1ind" using 1:2:3:4:5 notitle with candlesticks lt 7, \ - plots > candlesticks as expected > "$1ind" using 1:($23<0?$53:1/0) notitle with line lt 3, \ - plots nothing > at all > "$1ind" using 1:($23>0?$54:1/0) notitle with line lt 1 - plots a > continuous line with a zero value > > - how does the data file look like (post some lines as example)? > column 1 consists of dates in the format 29/5/2009 > column 23 consists of numbers ranging between -10 and 10 > columns 53 and 54 consist of values that are the same as the highs(53) and > lows(54) of the candlestick plot > > - do you expect the plotted lines to have a gaps where the data > are undefined (that's what gnuplot does) or do you want data > points to be connected over undefined regions? > I expect/would like to plot data in column 53 when the data in column 23 > is less than zero > I expect/would like to plot data in column 54 when the data in column 23 > is greater than zero > and when these conditions are not true the data in columns 53 and 54 > should not be plotted i.e. there > should be gaps in the plots. > > Essentially what I am trying to do is plot a stock chart with lines > plotted at the highs and lows of the stock price over certain defined > periods only. > > -- View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23902248.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: babelproofreader <bab...@gm...> - 2009-06-07 14:03:19
|
please post a few lines of your data file. 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 -- View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23911366.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2009-06-07 20:52:37
|
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 http://www.nabble.com/file/p23915216/test.gif 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 > -- View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23915216.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: babelproofreader <bab...@gm...> - 2009-06-08 14:13:58
|
Well, if my problem isn't with the code, do you have any other suggestions about how I may solve it. I'm running G N U P L O T Version 4.2 patchlevel 4 last modified Sep 2008 System: Linux 2.6.28-12-generic on an AMD 64 bit processor running Ubuntu 9.04. Maybe there is something wrong with my installation/terminal settings or something else? -- View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23924877.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2009-06-08 15:11:07
|
a few questions: - if you plot the 5 lines of data you posted recently, do you get the same plot result as i did? - how large is your data file? - the gnuplot program - is it from the distribution or did you compile it from source? babelproofreader wrote: > > Well, if my problem isn't with the code or the data file, do you have any > other suggestions about how I may solve it. > I'm running > G N U P L O T > Version 4.2 patchlevel 4 > last modified Sep 2008 > System: Linux 2.6.28-12-generic > on an AMD 64 bit processor running Ubuntu 9.04. > Maybe there is something wrong with my installation/terminal settings or > something else? > > -- View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23925927.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: babelproofreader <bab...@gm...> - 2009-06-08 22:51:36
|
a few questions: - if you plot the 5 lines of data you posted recently, do you get the same plot result as i did? No, I don't. I still get just the candlesticks with one line plotted at the zero level and the other line is missing completely. http://www.nabble.com/file/p23933590/%2B0%2529.png - how large is your data file? the data file(s) are 3000+ lines - the gnuplot program - is it from the distribution or did you compile it from source? It is from the distribution repositories, installed via Synaptic. The installed packages are gnuplot 4.2.4-6, gnuplot-x11 4.2.4-6, gnuplot-doc 4.2.4-6 and gnuplot-nox 4.2.4-6. -- View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23933590.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2009-06-09 07:23:11
|
to be sure that the error is not terminal dependent - if you 'set table' and plot these five data lines again, what do you get? i get this: gnuplot> set table gnuplot> plot 'ts.dat' 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 # Curve 0 of 3, 5 points # x y open ylow yhigh yclose type 1 981 990.2 974.1 980 i 2 976.9 988.3 970.5 984.4 i 3 983.2 992.1 961.5 965.6 i 4 964 983.4 962 982.3 i 5 981.4 985 953.8 962.6 i # Curve 1 of 3, 5 points # x y type 6.7163e-316 0 u 0 0 u 0 0 u 0 0 u 0 0 u # Curve 2 of 3, 5 points # x y type 1 915.1 i 2 915.1 i 3 925.2 i 4 925.2 i 5 925.2 i Thomas Sefzick wrote: > > a few questions: > - if you plot the 5 lines of data you posted recently, > do you get the same plot result as i did? > No, I don't. I still get just the candlesticks with one line plotted at > the zero level and the other line is missing completely. > http://www.nabble.com/file/p23933590/%2B0%2529.png > > - how large is your data file? > the data file(s) are 3000+ lines > > - the gnuplot program - is it from the distribution or > did you compile it from source? > It is from the distribution repositories, installed via Synaptic. The > installed packages are gnuplot 4.2.4-6, gnuplot-x11 4.2.4-6, gnuplot-doc > 4.2.4-6 and gnuplot-nox 4.2.4-6. > > > > > > -- View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23937446.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: babelproofreader <bab...@gm...> - 2009-06-09 09:24:19
|
to be sure that the error is not terminal dependent - if you 'set table' and plot these five data lines again, what do you get? My output is quite different: #Curve 0 of 3, 5 points #x yopen ylow yhigh yclose type 2.9713e+08 981 990.2 974.1 980 i 2.97216e+08 976.9 988.3 970.5 984.4 i 2.97302e+08 983.2 992.1 961.5 965.6 i 2.97389e+08 964 983.4 962 982.3 i 2.97475e+08 981.4 985 953.8 962.6 i #Curve 1 of 3, 5 points #x y type 6.90193e-310 6.84261e-317 u 3.73084e-317 2.13436e-321 u 5.02465e-321 1 u 0 0 u 6.90179e-310 2.61748e-310 u #Curve 2 of 3, 5 points #x y type 2.9713e+08 4 i 2.97216e+08 4 i 2.97302e+08 4 i 2.97389e+08 4 i 2.97475e+08 4 i Anticipating that the problem might be with my terminal settings, I notice that when I first start Gnuplot there is this output Terminal type set to 'wxt' gnuplot> Should my terminal type be set to something different? -- View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23939370.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2009-06-09 13:12:43
|
sorry, my xdata settings were wrong, with gnuplot_4.2.3 i get the same x-values as you do. you could try 'set term dumb' but i don't think that this will change anything. i'll try to find a ubuntu 9.04 installation. (this may take some time...) Thomas Sefzick wrote: > > to be sure that the error is not terminal dependent - if you 'set table' > and plot these five data lines again, what do you get? > > My output is quite different: > > #Curve 0 of 3, 5 points > #x yopen ylow yhigh yclose type > 2.9713e+08 981 990.2 974.1 980 i > 2.97216e+08 976.9 988.3 970.5 984.4 i > 2.97302e+08 983.2 992.1 961.5 965.6 i > 2.97389e+08 964 983.4 962 982.3 i > 2.97475e+08 981.4 985 953.8 962.6 i > > > #Curve 1 of 3, 5 points > #x y type > 6.90193e-310 6.84261e-317 u > 3.73084e-317 2.13436e-321 u > 5.02465e-321 1 u > 0 0 u > 6.90179e-310 2.61748e-310 u > > > #Curve 2 of 3, 5 points > #x y type > 2.9713e+08 4 i > 2.97216e+08 4 i > 2.97302e+08 4 i > 2.97389e+08 4 i > 2.97475e+08 4 i > > Anticipating that the problem might be with my terminal settings, I notice > that when I first start Gnuplot there is this output > > Terminal type set to 'wxt' > gnuplot> > > Should my terminal type be set to something different? > > > > > -- View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23942554.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2009-06-09 17:23:06
|
found a p4 dual core running kubuntu 9.04.
the gnuplot installation coming with the distribution shows
no error:
G N U P L O T
Version 4.2 patchlevel 4
last modified Sep 2008
System: Linux 2.6.28-11-generic
Copyright (C) 1986 - 1993, 1998, 2004, 2007, 2008
Thomas Williams, Colin Kelley and many others
Type `help` to access the on-line reference manual.
The gnuplot FAQ is available from http://www.gnuplot.info/faq/
Send bug reports and suggestions to
<http://sourceforge.net/projects/gnuplot>
Terminal type set to 'wxt'
gnuplot> set datafile separator ","
gnuplot> set xdata time
gnuplot> set timefmt "%d/%m/%Y"
gnuplot> set table
gnuplot> plot "ts.dat" 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
#Curve 0 of 3, 5 points
#x yopen ylow yhigh yclose type
2.9713e+08 981 990.2 974.1 980 i
2.97216e+08 976.9 988.3 970.5 984.4 i
2.97302e+08 983.2 992.1 961.5 965.6 i
2.97389e+08 964 983.4 962 982.3 i
2.97475e+08 981.4 985 953.8 962.6 i
#Curve 1 of 3, 5 points
#x y type
0 0 u
0 0 u
0 0 u
0 0 u
0 0 u
#Curve 2 of 3, 5 points
#x y type
2.9713e+08 915.1 i
2.97216e+08 915.1 i
2.97302e+08 925.2 i
2.97389e+08 925.2 i
2.97475e+08 925.2 i
gnuplot>
don't know what's happening on your system...
maybe you should compile gnuplot by yourself and see if the error remains
sorry, my xdata settings were wrong, with gnuplot_4.2.3 i get the
same x-values as you do.
you could try
'set term dumb'
but i don't think that this will change anything.
i'll try to find a ubuntu 9.04 installation.
(this may take some time...)
babelproofreader wrote:
>
>
> Thomas Sefzick wrote:
>>
>> to be sure that the error is not terminal dependent - if you 'set table'
>> and plot these five data lines again, what do you get?
>>
>> My output is quite different:
>>
>> #Curve 0 of 3, 5 points
>> #x yopen ylow yhigh yclose type
>> 2.9713e+08 981 990.2 974.1 980 i
>> 2.97216e+08 976.9 988.3 970.5 984.4 i
>> 2.97302e+08 983.2 992.1 961.5 965.6 i
>> 2.97389e+08 964 983.4 962 982.3 i
>> 2.97475e+08 981.4 985 953.8 962.6 i
>>
>>
>> #Curve 1 of 3, 5 points
>> #x y type
>> 6.90193e-310 6.84261e-317 u
>> 3.73084e-317 2.13436e-321 u
>> 5.02465e-321 1 u
>> 0 0 u
>> 6.90179e-310 2.61748e-310 u
>>
>>
>> #Curve 2 of 3, 5 points
>> #x y type
>> 2.9713e+08 4 i
>> 2.97216e+08 4 i
>> 2.97302e+08 4 i
>> 2.97389e+08 4 i
>> 2.97475e+08 4 i
>>
>> Anticipating that the problem might be with my terminal settings, I
>> notice that when I first start Gnuplot there is this output
>>
>> Terminal type set to 'wxt'
>> gnuplot>
>>
>> Should my terminal type be set to something different?
>>
>
--
View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23947533.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: babelproofreader <bab...@gm...> - 2009-06-09 20:36:29
|
Thomas, Thanks for your efforts to help me with this problem. I'm reluctant to uninstall the synaptic packages and compile from source because at the moment everything, apart from this conditional plotting, is working as I want. I don't want to risk running into unforseen problems with a source compile. For the moment I can live without the conditional plotting facility. I will revisit this issue at a future date if/when the need for conditional plotting becomes more pressing. -- View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23950809.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2009-06-10 07:20:06
|
you don't have to uninstall anything. you can download the gnuplot sources into a directory in your $HOME tree and compile it there and start it from there - without damaging the original installation. see: http://www.gnuplot.info/development/index.html#BuildingFromCVS babelproofreader wrote: > > Thomas, > > Thanks for your efforts to help me with this problem. > > I'm reluctant to uninstall the synaptic packages and compile from source > because at the moment everything, apart from this conditional plotting, is > working as I want. I don't want to risk running into unforseen problems > with a source compile. For the moment I can live without the conditional > plotting facility. I will revisit this issue at a future date if/when the > need for conditional plotting becomes more pressing. > -- View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23957005.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2009-06-10 13:21:55
|
found it...
in your answer to another topic ('source filename as parameter')
i saw that you 'call' a script - so i assume you do it here, too.
there is a note at the end of the help information for the 'call'
command:
http://www.gnuplot.info/docs/node79.html
so,
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
will work.
babelproofreader wrote:
>
> Thomas,
>
> Thanks for your efforts to help me with this problem.
>
> I'm reluctant to uninstall the synaptic packages and compile from source
> because at the moment everything, apart from this conditional plotting, is
> working as I want. I don't want to risk running into unforseen problems
> with a source compile. For the moment I can live without the conditional
> plotting facility. I will revisit this issue at a future date if/when the
> need for conditional plotting becomes more pressing.
>
--
View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23962229.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: babelproofreader <bab...@gm...> - 2009-06-11 18:05:52
|
Thomas, You are right, I was "calling" a script and you have solved my problem now. Many thanks. -- View this message in context: http://www.nabble.com/Conditional-plotting-tp23893745p23986268.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |