Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
380 views
in Technique[技术] by (71.8m points)

label - cntrlabel contour plot

I try to plot contour with only one cntrlabel per line but I do not succeed. I tried

set cntrlabel onecolor start 50 interval 10000000

and

set cntrlabel onecolor start 50 interval -1

but it does not work. Is there a mean to force 1 label per line ?

Moreover, I would like to shift the cntrlabel in order to prevent them to be overlayed (as observed on the top-left of the graph with the label 45, 50, 55, and 60). How should I do ?

enter image description here

The code used to obtain this graph is the following:

FILE = "data_sensibilite_correlation_phiFR_Tpfr_fusion_ordre"

set contour base
set cntrparam level discrete 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 25, 30, 35, 40, 45, 50, 55, 60
#set cntrparam level incremental 2, 4, 60
set cntrlabel onecolor start 50 interval 10000000

set xrange [-10:10]
set yrange [0.55:0.95]
#set cbrange [0:20]

set style textbox opaque
unset key
set view map
set xlabel "{/Symbol e}_{/Symbol q} [%]"
set ylabel "T_b / T_{c} uncertainties on T_c"
set cblabel "{/Symbol e}_{{/Symbol F} cs} [%]"

set pm3d noborder

splot FILE u 1:2:3 w pm3d, 
      FILE u 1:2:3 w l lc "black" nosurface, 
            FILE with labels boxed

The data is available here: https://filesender.renater.fr/?s=download&token=c718b69b-1496-47db-9da4-21d48cf08aa4

question from:https://stackoverflow.com/questions/65933573/cntrlabel-contour-plot

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...