線のスタイルを変更する
plot <expression> with <line_style>
線のスタイルを変更するには plot
のオプションで with
を使います。
with
の後ろには次のようなものを指定できます。
括弧は省略形を示しています。
boxes
(b) -- 箱(サブスタイル:linesize
(ls),linetype
(lt))boxerrorbars
-- 箱とエラーバーdots
(d) -- 点errorbars
(e) -- エラーバーimpulses
(i) -- 縦棒lines
(l) -- 線linespoints
-- 線と記号points
(p) -- 記号(サブスタイル:pointtype
(pt),pointsize
(ps))steps
(s) -- 階段状
線種ごとにさらにサブスタイルを指定することができます。
例えば、記号でプロットする場合(with points
(p) を指定した場合)は、オプションとして pointtype (pt)
と pointsize (ps)
を指定することができます。
例えば、記号のサイズを 3 にする場合は、plot
コマンドのオプションとして with p ps 3
(省略形での指定)を指定します。
線種や記号の種類にどんなものが指定できるかは、help with
コマンドで調べることができます。
ポイント(記号)のスタイルを変更する
plot 'test.dat' with linespoints pointtype <pointType>
plot 'test.dat' with linespoints pt <pointType>
線のスタイルとして、ポイントを伴う linespoints
などを指定した場合は、さらに、サブスタイルとして pointtype (pt)
を指定できます。
plot 'test.dat' with linespoints pointtype 5