Remove weekend gaps in gnuplot for candlestick chart
问题 I am trying to plot some financial candlestick charts with gnuplot. The problem is that there is no data during the weekends, and I don't want these gaps to be showed. Picture and code included below. set datafile separator "," set xdata time set timefmt"%Y-%m-%d" set xrange ["2015-10-22":"2016-02-06"] set yrange [*:*] set format x plot 'head.dat' using 1:2:4:3:5 notitle with candlesticks 回答1: As you have one entry per working day, instead of using the dates as abscissae you can use the line