The default plot symbol for an x,y dataset is a red cross. Let's say I'd like it to be a filled, black square. How do I do that?
To be transparent about what I'm doing in this code example, I set up a plot using gnuplot at the (already-specified) output path. It's a png, with a specified size, font and fontsize. I fiddle a bit with the left margin and border thickness and give my axes some titles, but those are other aesthetics.
To generate black lines, I would uncomment that one commented line. How do I get, say, filled squares though? I cannot work it out from the gnuplot documentation at http://gnuplot.sourceforge.net/docs_4.6/gnuplot.pdf
::Gnuplot.open do |gp|
::Gnuplot::Plot.new(gp) do |plot|
plot.terminal "png size 1800,600 font \"arial,20\""
plot.lmargin "10"
plot.output "#{star[:wrapped_rv_plot]}"
plot.border "linewidth 2"
plot.ylabel "Radial velocity (km/s)"
plot.xlabel "Orbital Phase"
x = ext_phase_rv.map { |point| point[0] }
y = ext_phase_rv.map { |point| point[1] }
plot.data << ::Gnuplot::DataSet.new([x, y]) do |ds|
# ds.with = "lines lt rgb \"black\""
ds.notitle
end
end
end