ruby-numo / numo-gnuplot

Gnuplot wrapper for Ruby/Numo
BSD 3-Clause "New" or "Revised" License
51 stars 8 forks source link

Can I use dt ? #18

Open daddygongon opened 5 years ago

daddygongon commented 5 years ago

I want to write a dashed vertical line on the plot, then

Numo.gnuplot do
  set arrow: "from 10.0 ,0.0 to 10.0,140.0 nohead dashtype (10, 5)", lc_rgb:"red"
  plot xx, yy, w: :l
end

But I only got a plain red line. How do I set the dashtype appropriately from numo/gnuplot?

masa16 commented 5 years ago

Drawing dashed line is a matter of Gnuplot version and terminal types. See http://www.ss.scphys.kyoto-u.ac.jp/person/yonezawa/contents/program/gnuplot/dashtype.html Gnuplot ver 5 seems support dt option. I do not know which terminal does not support dashed line. Gnuplot ver 4 requires dashed option for set terminal.