« Return to Thread: Conditional plotting

Re: Conditional plotting

by Thomas Sefzick :: Rate this Message:

Reply to Author | View in Thread

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?

 « Return to Thread: Conditional plotting