2

2 つのオーバーレイ グラフをプロットしようとしています。

1 つ目は単純な xy ポイント プロットです。

plot myfile u 1:2

2 つ目はレベル 0 の等高線図で、次のコマンドでプロットできます。

set contour
unset surface
set view map
set cntrparam levels discrete 0
splot a0 + a1*x + a2*y + a3*x**2 + a4*x*y + a5*y**2 + a6*x**3 + a7*x**2*y + a8*x*y**2 + a9*y**3

a0-a9定数です

どちらも同じ xrange と yrange を使用します。

両方を同じグラフにプロットするにはどうすればよいですか?

4

1 に答える 1

3

これはややトリッキーです。を使用して輪郭をファイルに書き込むことができます

テストされていない

set table 'datafile'
set contour
#contour options
splot ... with contours
unset table

次に、そのデータを線でプロットできます。

set term ...
set output ...
set view map
splot myfile u 1:2:(0.0), 'datafile'  u 1:2:3 w lines
于 2012-10-13T00:54:16.710 に答える