Gnuplot script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Gnuplot script
# 1  
Old 08-14-2015
Code Gnuplot script

Need assistance in getting a script right. It requires little tweaking and I am not getting it right .

Using below data and the below script it creates a table with png file but regarding the time it create 6,7,8 and i want each time 6:15 ,6:30 and so on
So that i can view the exact graph properly . Any inputs are highly appreciated.

Data

Code:
6:15 77.018
6:30 76.946
6:45 76.838
7:0 77.09
7:15 77.126
7:30 77.18
7:45 77.018
8:0 76.964
8:15 76.928
8:30 77.036
8:45 76.856
9:0 76.964
9:15 76.892
9:30 76.766
9:45 76.658
10:0 76.586
10:15 76.586
10:30 76.568
10:45 76.514
11:0 76.478
11:15 76.604
11:30 76.388
11:45 76.352
12:0 76.928
12:15 86.504
12:30 87.35
12:45 88.79

Script to plot
Code:
set terminal png size 1024,1024
set output 'no_wind.png'
set title "Wbgt monitoring"
set xlabel "time"
set key outside bottom
set ylabel "%"
set ytics format '%s%c'
set yrange [1:100]
set autoscale
set grid
set xdata time
set format x "%H"
set timefmt "%H:%M"
set ylabel "Percentage"
plot "no_wind.txt" using 1:2 title "Heat" with lines

# 2  
Old 08-19-2015
Try
Code:
set xtics format "%H:%M" scale 2 autofreq "00:15" rotate

xtics seems to obsolete the set format x.
These 2 Users Gave Thanks to MadeInGermany For This Post:
# 3  
Old 08-19-2015
Interesting, I'm sure my scripts can be made a lot simpler knowing that.
# 4  
Old 08-24-2015
Thank you MadeInGermany . Its a good format .
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Gnuplot 3d binning

Hello I have a text file with tens of thousands of rows The format is x y where both x and y can be anything between -100 and +100. What I would like to do is have a 3d gnuplot where there are 10,000 squared or bins and each bin will count how many rows have a value that would be... (1 Reply)
Discussion started by: garethsays
1 Replies

2. Shell Programming and Scripting

Gnuplot question

Hi! Let's say I have these two columns in file.txt 0 1 1 5 2 10 3 15 4 20 5 25 in gnuplot, i would plot usingplot 'file.txt' u 1:2 If I wanted to add a label to the y-axis I would useset label "Ef" at 0.0,7.0 However, I want the label Ef to be on the otherside of the y-axis. Not... (0 Replies)
Discussion started by: sidiq1983
0 Replies

3. Shell Programming and Scripting

Using variables in gnuplot within a shell script

Hi everybody, please help me with this problem Suppose I have a script like this to run commands of gnuplot. #!/bin/sh lib=$1 old="output/old/$lib.dat" new="output/new/$lib.dat" gnuplot << EOF set logscale x set logscale y set size square set grid set pointsize 1 plot "< paste $old... (5 Replies)
Discussion started by: Dark2Bright
5 Replies

4. Shell Programming and Scripting

Passing gnuplot variables to shell script

Hi, I need to pass a gnuplot value to a shell script. I have a main shell script (Main.sh) that has a bunch of gnuplot commands. Main.sh calls another gnuplot script (Child.gnu). A part of the code in Child.gnu is as follows: sp '</data/src/scripts/results/plot_data.sh $col' u (A):2:3 w pm3d... (8 Replies)
Discussion started by: annazpereira
8 Replies

5. UNIX and Linux Applications

gnuplot limitations

I'm running a simulation (programmed in C) which makes calls to gnuplot periodically to plot data I have stored. First I open a pipe to gnuplot and set it to multiplot: FILE * pipe = popen("gnuplot", "w"); fprintf(pipe, "set multiplot\n"); fflush(pipe); (this pipe stays open until the... (0 Replies)
Discussion started by: sedavidw
0 Replies

6. UNIX and Linux Applications

GNUplot

Hi, I am trying to make a plot of an ASCII file using GNUplot, but I keep getting error msg: for example plot filename.txt It says that (.txt ) is not identified ... I tried to write it without the .txt part, but I also get the error msg. Any idea why? :confused: (1 Reply)
Discussion started by: cosmologist
1 Replies

7. Shell Programming and Scripting

Gnuplot shell script controlled animation

Hi, I am looking for basic shell script to feed Gnuplot with live data, to arrange basic animation. I mean one-liner one variable real function. Any idea or experiences from the past, generating Gnuplot animation on dumb terminal (ASCII only) ? Or please refer me to a nice web site. ... (7 Replies)
Discussion started by: darius2
7 Replies

8. AIX

Sarcheck - gnuplot 3.7.1

Good Afternoon, I'm having an issue finding the correct libX11.a fileset on my 595 running AIX 5.3.0.0. Currently I'm trying to instal Sarcheck on my nim master. The problem occurs during the GNUPLOT installation. error: failed dependencies: libX11.a(shr4.o) is needed by gnuplot-3.7.1-1... (3 Replies)
Discussion started by: vincent1117
3 Replies

9. UNIX for Dummies Questions & Answers

Help with gnuplot

Hi, I am a beginner using UNIX, and was wondering how to use gnuplot from UNIX on my pc. I am connected remotely to my work's UNIX server using Secure Shell Client, and gnuplot won't open a new window when I use the plot command. How do I do this? Moreover, is it possible to save things from the... (0 Replies)
Discussion started by: KTTFB64
0 Replies
Login or Register to Ask a Question