曲線塗りつぶしのプロットタイトルの並べ替え

曲線塗りつぶしのプロットタイトルの並べ替え

キーのラベルを変更したい素晴らしいgnuplotグラフがあります。私が経験している問題はfillcurvesオプションにあります。仕事をより簡単にするために写真を添付し​​ました。ご覧のとおり、キーラベルは2 - 1 - 3ですが、私は同じ塗りつぶし曲線パターンを維持しながら1 - 2 - 3を持ちたいと思います。もちろん、単にプロットの順序を変更すると1 - 2 - 3になりますが、それに応じて塗りつぶしパターンも変更されるので、これを避けたいと思います。 gnuplotの可能性を利用してNaN何とかハッキングしてみました(https://stackoverflow.com/questions/10614654/gnuplot-legend-order)しかし、ここで問題は充填材が異なるということです。 gnuplot文書を確認するとき(http://www.bersch.net/gnuplot-doc/filledcurves.html)パターンを修正する方法がないことを知っていますが、どのような方法があるべきかと思います。テストのためにgnuplotスクリプトを添付しました。

ここに画像の説明を入力してください。

#!/bin/gnuplot
#------------------------------------------------------------------------------

set grid
set key right top
set xrange [20:220]

set style line 20 lw 2 lc rgb 'black'
set border linestyle 20
set style line 1 lw 2.0 lc rgb 'dark-gray'
set style line 2 lw 2.0 lc rgb '#202020'
set style line 3 lw 2.0 lc rgb 'gray'
set style fill transparent pattern 2


#------------------------------------------------------------------------------
A=-1.74959e-14
B=-1.87199e-12
C=1.87756e-9
DeltaBDP=0.45e-9

OffsetBP=0.05e-9
DeltaBP=0.8e-9

OffsetB=0.7e-9
DeltaB=0.8e-9

# 
f(x)=A*x**2+B*x+C
g(x)=f(x)+DeltaBDP

# Beta P
h(x)=f(x)+OffsetBP
i(x)=h(x)+DeltaBP

# Beta
j(x)=h(x)+OffsetB
k(x)=j(x)+DeltaB

#------------------------------------------------------------------------------

set terminal epslatex
set output 'tex/foobar.tex'
plot \
'+' using 1:(j($1)*1e9):(k($1)*1e9) with filledcurves closed lc rgb 'dark-gray' t '2' , \
'+' using 1:(f($1)*1e9):(g($1)*1e9) with filledcurves closed lc rgb 'dark-gray' t '1', \
'+' using 1:(h($1)*1e9):(i($1)*1e9) with filledcurves closed lc rgb '#202020' t '3', \
f(x)*1e9 w l ls 1 t '', \
g(x)*1e9 w l ls 1 t '', \
h(x)*1e9 w l ls 2 t '', \
i(x)*1e9 w l ls 2 t '', \
j(x)*1e9 w l ls 3 t '', \
k(x)*1e9 w l ls 3 t ''


#------------------------------------------------------------------------------

ベストアンサー1

今はテストできませんが、このページの2番目の答えはうまくいくかもしれません。 https://stackoverflow.com/questions/6290504/reordering-gnuplot

おすすめ記事