How to start working with GNU PLOT??


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to start working with GNU PLOT??
Prev   Next
# 1  
Old 01-25-2012
Question How to start working with GNU PLOT??

Dear Experts,

I wanted to plot a graph with respect to values from a file.
I'm doing it with Excel 2007, but I want to create the chart in script itself.
I searched in internet for GNUPLOt. But I couldn't understand anything.
Here is my situation. I have a file having values separated by "|".
Code:
report:~/Naga # head SCP_CAPS_24012012.txt 
00:00:00|20.62|7.85|12.05|12.40|16.73|16.38|13.80|5.23|11.87|7.48|2.35|10.42
00:01:00|22.83|9.88|14.75|13.70|15.80|18.63|14.00|5.70|13.83|9.47|2.65|10.53
00:02:00|21.87|8.97|14.00|12.78|14.83|17.05|14.52|6.82|13.53|9.32|2.73|10.32
00:03:00|21.42|7.50|12.55|12.78|15.32|16.60|14.32|5.97|12.28|8.35|2.05|10.70
00:04:00|19.38|7.52|11.67|11.58|14.45|15.65|12.98|5.45|11.77|8.18|2.20|9.90
00:05:00|20.28|7.43|10.40|11.33|13.95|15.33|12.05|5.73|11.77|8.40|2.10|9.50
00:06:00|19.40|7.65|10.45|11.38|14.40|15.95|13.05|5.97|11.83|7.53|2.28|10.43
00:07:00|19.20|6.88|10.92|10.80|13.65|15.08|12.88|5.90|10.13|7.23|2.58|10.22
00:08:00|18.95|6.97|10.02|10.40|14.12|14.20|12.72|5.20|10.30|7.48|1.85|9.27
00:09:00|19.60|6.95|9.22|11.25|13.17|14.25|13.13|5.50|10.47|7.10|2.20|9.85

First column is time, Second is node1,node2 and so on. I need to plot a line graph with column1 and 2, column1 and 3 .......... resulting in 13 graphical outputs which I want to store in a file.

I tried to generate a graph but I am not successful.
Code:
gnuplot> load "SCP_CAPS_24012012.txt"

gnuplot> 00:00:00|20.62|7.85|12.05|12.40|16.73|16.38|13.80|5.23|11.87|7.48|2.35|10.42
         ^
         "SCP_CAPS_24012012.txt", line 1: invalid command

Pls help with your ideas and suggestions to do this.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. What is on Your Mind?

Has Python Lost The Plot?

Not sure if this should be in the Programming forum so placed here for safety... I used to really love Python, but as it has evolved from V1.4.0, (for the classic AMIGA in my case), to its present V3.4.? incarnation has it become less user friendly for newbie and amateur coders? I have... (6 Replies)
Discussion started by: wisecracker
6 Replies

2. Shell Programming and Scripting

Ls help: ls not working with start character search (^)

Experts, How to list a file using ^ character, for all files started with character a. (os= hp-ux ) # ls -l -rw------- 1 useradm users 0 Mar 26 14:30 abc -rw------- 1 useradm users 0 Mar 26 14:30 def -rw------- 1 useradm users 0 Mar 26... (7 Replies)
Discussion started by: rveri
7 Replies

3. Slackware

pppoe-start not working

Hello. I'm new here and i'm new to slack (concept) as well. I made a connection for pppoe with pppoe-setup, bringed up eth0 with ifconfig but when i try pppoe-connect i get "Cannot determine ethernet address for proxy ARP" and with pppoe-start i get "child pppd process terminated". How can i make... (0 Replies)
Discussion started by: editheraven
0 Replies

4. Solaris

Solaris 10, start inetd in a zone not working

Hello all, I`ve the following problem - I cannot start inetd in any way possible: bash-3.00# svcs inetd STATE STIME FMRI offline Jul_30 svc:/network/inetd:default bash-3.00# bash-3.00# svcadm enable -r inetd bash-3.00# svcs inetd STATE STIME FMRI... (6 Replies)
Discussion started by: click
6 Replies

5. Shell Programming and Scripting

gnu sed regex grouping not working?

Hello, from the gnu sed manual, I should be able to do this: `\(REGEXP\)' Groups the inner REGEXP as a whole, this is used to: * Apply postfix operators, like `\(abcd\)*': this will search for zero or more whole sequences of `abcd', while `abcd*' ... (3 Replies)
Discussion started by: Allasso
3 Replies

6. UNIX for Dummies Questions & Answers

Working out end time from start + elapsed

Hi, I'm writing a script and have become stuck trying to define a variable (COMP) by adding an elapsed time (ELAPSE e.g 00:55) to a start time (START e.g 23:50). Can anybody give me a solution as to how I can get a completion time in hh:mm from the variables above? thanks Richard (4 Replies)
Discussion started by: rik1551
4 Replies
Login or Register to Ask a Question