gnuplot set key issue


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting gnuplot set key issue
# 1  
Old 04-03-2012
gnuplot set key issue

Hi

I have a plotting function like this-
Code:
plot    '../processing_old/time0.txt' using 1:6 title "1.6" with boxes  fs solid 0.05 ls 5,\
        'time0.txt' using 1:6 title "1.7" with boxes fs solid 0.05 ls 6,\
        '../processing_new/time0.txt' using 1:6 title "2.0" with boxes  fs solid 0.05 ls 7,\
        '../processing_old/time1.txt' using 1:6 with boxes  fs solid 0.05 ls 5,\
        'time1.txt' using 1:6 with boxes fs solid 0.05 ls 6,\
       '../processing_new/time1.txt' using 1:6 with boxes  fs solid 0.05 ls 7,\
        '../processing_old/time2.txt' using 1:6 with boxes  fs solid 0.05 ls 5,\
        'time2.txt' using 1:6 with boxes fs solid 0.05 ls 6,\
       '../processing_new/time2.txt' using 1:6 with boxes  fs solid 0.05 ls 7,\
        '../processing_old/time3.txt' using 1:6 with boxes  fs solid 0.05 ls 5,\
        'time3.txt' using 1:6 with boxes fs solid 0.05 ls 6,\
       '../processing_new/time3.txt' using 1:6 with boxes  fs solid 0.05 ls 7

In this I have 4 groups of three values that I am plotting, As you can see I have used the same ls value for the same values. When plotting the key, I either get 12 values in the key, or I can only turn it off completely. Is it possible to set the key to show just three values? ie, 1.6 1.7 and 2?

Thanks.
Moderator's Comments:
Mod Comment Threads merged - please do not double post

Last edited by jim mcnamara; 04-03-2012 at 10:50 AM..
# 2  
Old 04-03-2012
gnuplot set key issue

Hi

I have a plotting function like this-
Code:
plot    '../processing_old/time0.txt' using 1:6 title "1.6" with boxes  fs solid 0.05 ls 5,\
        'time0.txt' using 1:6 title "1.7" with boxes fs solid 0.05 ls 6,\
        '../processing_new/time0.txt' using 1:6 title "2.0" with boxes  fs solid 0.05 ls 7,\
        '../processing_old/time1.txt' using 1:6 with boxes  fs solid 0.05 ls 5,\
        'time1.txt' using 1:6 with boxes fs solid 0.05 ls 6,\
       '../processing_new/time1.txt' using 1:6 with boxes  fs solid 0.05 ls 7,\
        '../processing_old/time2.txt' using 1:6 with boxes  fs solid 0.05 ls 5,\
        'time2.txt' using 1:6 with boxes fs solid 0.05 ls 6,\
       '../processing_new/time2.txt' using 1:6 with boxes  fs solid 0.05 ls 7,\
        '../processing_old/time3.txt' using 1:6 with boxes  fs solid 0.05 ls 5,\
        'time3.txt' using 1:6 with boxes fs solid 0.05 ls 6,\
       '../processing_new/time3.txt' using 1:6 with boxes  fs solid 0.05 ls 7

In this I have 4 groups of three values that I am plotting, As you can see I have used the same ls value for the same values. When plotting the key, I either get 12 values in the key, or I can only turn it off completely. Is it possible to set the key to show just three values? ie, 1.6 1.7 and 2?

Thanks.
# 3  
Old 04-23-2012
Sure! Just append "notitle" to the plot commands that you want to omit from the key.


Lee Phillips
gnuplot Cookbook
available on Amazon
# 4  
Old 04-24-2012
Hi,
Thanks, but that would totally omit all of the key. I want it to have just 3 values out of 12.
Is that possible?
# 5  
Old 04-24-2012
No, the "notitle" keyword, used in individual plot commands, omits just those curves from the key, leaving the other intact. Like this:

Code:
gnuplot> plot sin(x), sin(2*x) notitle, cos(x)


Try it!

Last edited by Franklin52; 04-25-2012 at 03:37 AM.. Reason: Please use code tags
This User Gave Thanks to LeePhillips For This Post:
# 6  
Old 04-25-2012
woo, why didnt I think of that? Smilie Will try it out. Thanks a lot LeePhillips Smilie

Really appreciate it.
# 7  
Old 05-09-2012
Hi
Did u mean to use something like this?

Code:
'../processing_old/time1_a.txt' using 1:6 notitle with boxes  fs pattern 1 ls 5 lw 4,\

It returns me a duplicated or contradicting arguments in plot options error.

Thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Different set key multiplot gnuplot

Hello everybody, I am using Windows 10. I need to plot several graphs simultaneously with Gnuplot. The script is: GNUTERM = "wxt" set terminal wxt set termoption enhanced set encoding iso_8859_1 set multiplot layout 2,3 set xtics out set ytics out set xtics nomirror set ytics... (4 Replies)
Discussion started by: supernono06
4 Replies

2. AIX

SSH key issue

Hello I have AIX server as a source server and destination is Linux server. I have configured the ssh key as below.... generated rsa key on aix with userA and copied the public key to on linux server in userB/.ssh/authorized_keys but when i try ssh userB@linux server its again asks me for... (4 Replies)
Discussion started by: powerAIX
4 Replies

3. Emergency UNIX and Linux Support

GNUPLOT CDF issue

Hi, I'm trying to generate a cdf graph using gnuplot's smooth cumulative function. Here is the input file 34.3 19.2 20.7 28.3 32.5 21 37.6 48.8 44.2 18.1 29.2 20.4 34.4 26.5 (2 Replies)
Discussion started by: jamie_123
2 Replies

4. Red Hat

Ssh-key issue

Hi all, I have generated pass phrase key from Linux and copied into windows system. Then now we cant login to Linux from windows without that pass phrase key, unfortunately i forgot the pass phrase key. I have tried below procedures to recover it. 1. Have regenerated the id_RSA key again... (3 Replies)
Discussion started by: mastansaheb
3 Replies

5. Linux

Gnuplot terminal set to 'unknown'

I installed version 4.6.4 of gnuplot recently on my system running 10.04 ubuntu linux. I am getting error Terminal type set to 'unknown' Also when i try to set term X11 or wxt i get error Terminal type set to 'unknown' ^ unknown or ambiguous terminal... (5 Replies)
Discussion started by: Ujjwal1982
5 Replies

6. Shell Programming and Scripting

Public key issue

I generated a public key that we are using for ssh and sftp but I noticed that I am still being asked for a password when I run my script. is there something I need to put in my script? Our linux guy said he placed keys on both servers. (2 Replies)
Discussion started by: MJCreations
2 Replies

7. Shell Programming and Scripting

Grep final set of parameters from fit.log gnuplot file

I would like to grep the final set of fit parameters from a gnuplot log file to form columns that look like this. a_1001 b_1001 x_1001 a_1002 b_1002 x_1002 a_1003 b_1003 x_1003 . . . . . . . . . a_1250 b_1250 c_1250 At... (8 Replies)
Discussion started by: kayak
8 Replies

8. Solaris

Solaris 8 ssh public key authentication issue - Server refused our key

Hi, I've used the following way to set ssh public key authentication and it is working fine on Solaris 10, RedHat Linux and SuSE Linux servers without any problem. But I got error 'Server refused our key' on Solaris 8 system. Solaris 8 uses SSH2 too. Why? Please help. Thanks. ... (1 Reply)
Discussion started by: aixlover
1 Replies

9. Shell Programming and Scripting

How to set delete Key to erase automatically

We need to su to root in 1000 systems, so it is almost impossible to add "stty erase ^H" to every .profile on these systems. Is there any way to set delete key to erase automatically after running "su -"? Thanks :) (4 Replies)
Discussion started by: aixlover
4 Replies

10. Solaris

How to set history key in Solaris

Hi Solaris guys, I just have my solaris 10 setup on x86 old box... How can i get history key? eg. Linux using up/down arrow key to call history command... HPUX using Esc-k How can i do the samething in Solaris? Thanks in advanced! Regards, gary (3 Replies)
Discussion started by: timontt
3 Replies
Login or Register to Ask a Question