X-Received: by 2002:a02:4f03:: with SMTP id c3mr18370459jab.13.1543225588435; Mon, 26 Nov 2018 01:46:28 -0800 (PST) X-Received: by 2002:a9d:24c3:: with SMTP id z61mr424835ota.1.1543225588138; Mon, 26 Nov 2018 01:46:28 -0800 (PST) Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!q69no9667itb.0!news-out.google.com!v141ni29ita.0!nntp.google.com!q69no9666itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Mon, 26 Nov 2018 01:46:27 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2405:204:a0aa:8c40:7f79:6956:1d7b:d363; posting-account=QLJ3mAoAAABT4Plmu7vwBG2bcvTSTo_B NNTP-Posting-Host: 2405:204:a0aa:8c40:7f79:6956:1d7b:d363 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1e149689-2815-48ef-bf88-2df18085fc10@googlegroups.com> Subject: Re: splot, putting labels corresponding to one parameter From: srishtinagu19@gmail.com Injection-Date: Mon, 26 Nov 2018 09:46:28 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lines: 70 Xref: csiph.com comp.graphics.apps.gnuplot:4102 On Monday, November 26, 2018 at 3:08:56 PM UTC+5:30, J=C3=B6rg Buchholz wro= te: > On 26.11.2018 07:01, srishtinagu19@gmail.com wrote: > > Hi, > > I want to set contour labels at different parameter values in the key o= f my contour plot. I have been trying 'set clabel' but it gives me the same= label for each parameter , also I tried it writing multiple times for each= parameter, but didnt work. > >=20 > > Following is my gnuplot script- > > "" > > set terminal pdf > > set output "myplot1.pdf" > > set term pdfcairo enhanced > > set contour > > set view map > > unset surface > > set xlabel '{/Symbol d}_{CP}'=20 > > set ylabel 'sin^{2}{/Symbol Q}_{23}' > > #set xtics nomirror > > #set ytics nomirror > > set border lw 4 > > #set title "Write your title" > > #set title font "Helvetica,14"=20 > > set label 1"" at 135,0.62 point pt 7 ps 0.5 > > set key inside left bottom Left title 'Confidence Levels' noautotitle w= idth 0.50 height 0.75 box lw 3 lt 7=20 > > set clabel '3{/Symbol s}' > > set clabel '2{/Symbol s}'=20 > > set cntrparam levels discrete 2.3,4.61,5.99=20 > > splot [0:360][0:0.9] "test1.dat" with lines lw 3=20 > > set out > > "" > >=20 > > Please let me know. > > Thank you. > >=20 >=20 > Is this what you want? >=20 > reset > #set output "myplot1.pdf" > #set term pdfcairo enhanced > set contour > set view map > unset surface > set xlabel '{/Symbol d}_{CP}' > set ylabel 'sin^{2}{/Symbol Q}_{23}' > #set xtics nomirror > #set ytics nomirror > set border lw 4 > #set title "Write your title" > #set title font "Helvetica,14" > set label 1"" at 135,0.62 point pt 7 ps 0.5 > set key inside left bottom Left title 'Confidence Levels' noautotitle > width 0.50 height 0.75 box lw 3 lt 7 > #set clabel '3{/Symbol s}' > #set clabel '2{/Symbol s}' > set cntrlabel format '%.2f' > set cntrparam levels discrete 2.30,4.61,5.99 > splot x*y with lines lw 3 > #set out >=20 > Cheers > J=C3=B6rg Hi, set cntrlabel format '%.2f' It is showing error on this line... Since I am plotting at three contour levels , so for each colored line i wa= nt to indicate it with a different representation in the key of the plot.