X-Received: by 2002:a24:454e:: with SMTP id y75mr17531795ita.37.1543227180502; Mon, 26 Nov 2018 02:13:00 -0800 (PST) X-Received: by 2002:a9d:5403:: with SMTP id j3mr423242oth.2.1543227180270; Mon, 26 Nov 2018 02:13:00 -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!q69no11955itb.0!news-out.google.com!y103-v6ni29ita.0!nntp.google.com!k10no12057itk.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Mon, 26 Nov 2018 02:12:59 -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: <1e149689-2815-48ef-bf88-2df18085fc10@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <13bbf43a-30ab-4bfc-b655-dc3c99d71672@googlegroups.com> Subject: Re: splot, putting labels corresponding to one parameter From: srishtinagu19@gmail.com Injection-Date: Mon, 26 Nov 2018 10:13:00 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lines: 81 Xref: csiph.com comp.graphics.apps.gnuplot:4104 On Monday, November 26, 2018 at 3:25:16 PM UTC+5:30, J=C3=B6rg Buchholz wro= te: > On 26.11.2018 10:46, srishtinagu19@gmail.com wrote: > > On Monday, November 26, 2018 at 3:08:56 PM UTC+5:30, J=C3=B6rg Buchholz= wrote: > >> On 26.11.2018 07:01, srishtinagu19@gmail.com wrote: > >>> Hi, > >>> I want to set contour labels at different parameter values in the key= of my contour plot. I have been trying 'set clabel' but it gives me the sa= me label for each parameter , also I tried it writing multiple times for ea= ch parameter, but didnt work. > >>> > >>> 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= width 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 > >>> "" > >>> > >>> Please let me know. > >>> Thank you. > >>> > >> > >> Is this what you want? > >> > >> 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 > >> > >> Cheers > >> J=C3=B6rg > >=20 > > Hi, > > set cntrlabel format '%.2f' > > It is showing error on this line... >=20 > use "set clabel '%.2f'" instead. There are some changes from gnuplot 4.6 > to 5.2 >=20 > > Since I am plotting at three contour levels , so for each colored line = i want to indicate it with a different representation in the key of the plo= t. > > no its not working...