Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #4109

Re: splot, putting labels corresponding to one parameter

Path csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From Jörg Buchholz <bookwood4new@freenet.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: splot, putting labels corresponding to one parameter
Date Mon, 26 Nov 2018 16:29:41 +0100
Organization A noiseless patient Spider
Lines 53
Message-ID <pth3h7$foj$1@dont-email.me> (permalink)
References <alpine.WNT.2.10.1708260737460.1524@BecaneCoulon> <aa5180b2-f6c5-4f82-977f-dd0852a3f65b@googlegroups.com> <ptgeve$mv0$1@dont-email.me> <1e149689-2815-48ef-bf88-2df18085fc10@googlegroups.com> <ptgfu3$s5m$1@dont-email.me> <13bbf43a-30ab-4bfc-b655-dc3c99d71672@googlegroups.com> <ptgi2n$8op$1@dont-email.me> <3e94c605-d304-41d3-b924-a6f9716ae9d0@googlegroups.com> <ptgo8m$b8f$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
Injection-Date Mon, 26 Nov 2018 15:29:43 -0000 (UTC)
Injection-Info reader01.eternal-september.org; posting-host="9f7601c2d35bd51d0349fd89a79dca88"; logging-data="16147"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1986RkAUcdVO4+CrFzTLgDVsv5wFJbotLU="
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1
Cancel-Lock sha1:1FjYWtnRrjbovC9u+kZuSySDYK0=
In-Reply-To <ptgo8m$b8f$1@dont-email.me>
Content-Language en-GB
Xref csiph.com comp.graphics.apps.gnuplot:4109

Show key headers only | View raw


On 26.11.2018 13:17, Jörg Buchholz wrote:

>> Yes Sir, It is giving the plot but I want to make changes in the key of this contour plot.
>> Like it is showing the values 2.30,4.61,5.99 at which I am plotting the contour in the key but I don't want these values to be printed in the key.
>>  I want to display the percentages that these values represent in the key.
>> Instead of 2.30- I want it to display 68% or 1sigma, and so on...
>>
> 
> Scale your Z-Value to %, than you can set the cntrparam in %-Value. With
> clabel '%.0f %%' you than have the %-Values in your key.
> 
> eyample if 0.5 are 50 %:
> 
> splot [0:360][0:0.9] "test1.dat" u 1:2:$3*100 with lines lw 3

If nothing works, you can put a white rectangle over the entry in the
key and than place "normal" labels there.

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 '%.2f'
set cntrparam levels discrete 2.30,4.61,5.99
set object 1 rectangle from graph 0.01,0.01 to graph 0.05,0.09 fc
'white' fs solid 1.0 noborder front
linespace=0.025
set label 11 '1 {/Symbol s}' at graph 0.025,0.025 front
set label 12 '2 {/Symbol s}' at graph 0.025,0.025+1*linespace front
set label 13 '3 {/Symbol s}' at graph 0.025,0.025+2*linespace front
splot x*y w l lw 3
#set out

The "linespace" and the position from the rectangle and the labels
differ with different terminals.

With gnupot 5.3 there comes something for placing extra key entries.

Jörg

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

splot, putting labels corresponding to one parameter Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> - 2017-08-26 08:05 +0200
  Re: splot, putting labels corresponding to one parameter Karl Ratzsch <mail.kfr@gmx.net> - 2017-08-26 08:42 +0200
    Re: splot, putting labels corresponding to one parameter Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> - 2017-08-26 09:14 +0200
      Re: splot, putting labels corresponding to one parameter Karl Ratzsch <mail.kfr@gmx.net> - 2017-08-27 12:17 +0200
        Re: splot, putting labels corresponding to one parameter Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> - 2017-08-30 02:05 +0200
          Re: splot, putting labels corresponding to one parameter Karl Ratzsch <mail.kfr@gmx.net> - 2017-08-30 10:00 +0200
            Re: splot, putting labels corresponding to one parameter Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> - 2017-08-30 13:03 +0200
  Re: splot, putting labels corresponding to one parameter srishtinagu19@gmail.com - 2018-11-25 22:01 -0800
    Re: splot, putting labels corresponding to one parameter Jörg Buchholz <bookwood4new@freenet.de> - 2018-11-26 10:38 +0100
      Re: splot, putting labels corresponding to one parameter srishtinagu19@gmail.com - 2018-11-26 01:46 -0800
        Re: splot, putting labels corresponding to one parameter Jörg Buchholz <bookwood4new@freenet.de> - 2018-11-26 10:55 +0100
          Re: splot, putting labels corresponding to one parameter srishtinagu19@gmail.com - 2018-11-26 02:12 -0800
            Re: splot, putting labels corresponding to one parameter Jörg Buchholz <bookwood4new@freenet.de> - 2018-11-26 11:31 +0100
              Re: splot, putting labels corresponding to one parameter srishtinagu19@gmail.com - 2018-11-26 02:50 -0800
                Re: splot, putting labels corresponding to one parameter srishtinagu19@gmail.com - 2018-11-26 02:52 -0800
                Re: splot, putting labels corresponding to one parameter Jörg Buchholz <bookwood4new@freenet.de> - 2018-11-26 13:17 +0100
                Re: splot, putting labels corresponding to one parameter Jörg Buchholz <bookwood4new@freenet.de> - 2018-11-26 16:29 +0100

csiph-web