Sponsored Content
Full Discussion: Gnuplot script
Top Forums Shell Programming and Scripting Gnuplot script Post 302952180 by ajayram_arya on Friday 14th of August 2015 02:36:25 PM
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

 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
PYXPLOT(1)						      General Commands Manual							PYXPLOT(1)

NAME
pyxplot - a commandline data processing, graph plotting, and vector graphics suite. SYNOPSIS
pyxplot [file ...] DESCRIPTION
PyXPlot is a multi-purpose command-line tool for performing simple data processing and for producing graphs and vector graphics. The cen- tral philosophy of PyXPlot's interface is that common tasks -- for example, plotting labelled graphs of data -- should be accessible via short, simple and intuitive commands which require minimal typing to produce a first draft result. At the same time, these commands also take a sufficient range of optional arguments and settings to allow these figures to be subsequently fine-tuned into a wide range of dif- ferent styles, appropriate for inclusion in reports, talks or academic journals. As well as being a graph-plotting package, PyXPlot also has facilities for fitting mathematical functions to data, for numerically solving simple systems of equations, and for converting datafiles between different formats. Its mathematical environment can interpolate datasets, integrate and differentiate them, and take Fourier transforms. PyXPlot's ability to keep track of the physical units in which data are expressed, and to convert data between different units of measurement, mean that it can be used as a powerful desktop calculator. PyXPlot's interface bears some striking similarities to that of Gnuplot. Specifically, the commands used for plotting simple graphs in the two programs are virtually identical, though the syntax used for more advanced plotting often differs and PyXPlot's mathematical environ- ment is hugely extended over that of Gnuplot. This means that Gnuplot users will have a head start with PyXPlot: simple Gnuplot scripts will often run in PyXPlot with minimal modification. A number of examples of the graphical output which PyXPlot can produce may be found on the PyXPlot website: <http://www.pyxplot.org.uk/>. Full documentation can be found in: /usr/share/doc/pyxplot/pyxplot.pdf COMMAND LINE OPTIONS
-h, --help: Display this help. -v, --version: Display version number. -q, --quiet: Turn off initial welcome message. -V, --verbose: Turn on initial welcome message. -c, --colour: Use coloured highlighting of output. -m, --monochrome: Turn off coloured highlighting. AUTHORS
Dominic Ford, Ross Church and Zoltan Voros <coders@pyxplot.org.uk> CREDITS
Thanks to Dave Ansell, Rachel Holdforth, Stuart Prescott, Michael Rutter and Matthew Smith, all of whom have made substantial contributions to the development of PyXPlot. SEE ALSO
pyxplot_watch(1),gnuplot(1) PYXPLOT(1)
All times are GMT -4. The time now is 01:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy