Sponsored Content
Full Discussion: Creating graphs
Top Forums Shell Programming and Scripting Creating graphs Post 302427542 by Lakris on Monday 7th of June 2010 02:50:13 AM
Old 06-07-2010
Quote:
Originally Posted by frustrated1
Thanks

any chance you can post example of data file you had and commands you used with gnuplot to plot the data and get output?
Hi!
Sure. Here's a very trivial example; I weighed myself a few times, usually morning and afternoon, recorded the weights with date in a file like this, file vikt.dat:
Code:
2009-Dec-14_17:21 87.70  88.50
2009-Dec-17_08:27 87.65  88.75
2009-Dec-17_14:17 87.80  88.55
2009-Dec-18_10:23 87.40  88.30
2009-Dec-18_14:21 88.45  87.65
2009-Dec-18_19:13 88.25  87.75
2009-Dec-19_08:18 87.50  87.60
2009-Dec-19_13:54 87.75  87.25
2009-Dec-20_14:36 87.90  87.30
2009-Dec-21_15:32 88.90  87.45
2009-Dec-21_16:55 88.00  89.20
2009-Jan-07_14:48 88.05  87.95
2009-Jan-09_11:41 88.50  87.65

Then I used this script for gnuplot to plot the data into a line graph, vikt.plot:
Code:
set xdata time  # The x axis data is time
set timefmt "%Y-%b-%d_%H:%M"
set format x "%d %b"
with linespoint
plot [] [85:91]  'vikt.dat' using 1:2 with linespoint

and call the script from the command line or a script with:
Code:
gnuplot -p vikt.plot

And there are as You can see on their web site, lot's of formats for graphs, ability to export to different graphic file formats, etc, this is just a very simple example.

Best regards,
Lakris

PS I have used it professionally as well Smilie
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

CPU graphs in unix

Hi, How to get the CPU graphs to see the performance? I use Linux version. I got some commands in the net. xload and xosview. It's mentioned like below: To start xload, simply open an xterminal on the system and type the following: $ xload &Couple of doubts here .. what is... (0 Replies)
Discussion started by: venkatesht
0 Replies

2. UNIX for Dummies Questions & Answers

multiple graphs on same window

Hi All, I have written a script to get live data after 5 minutes from a remote system and then plot the graph using gnuplot.All this has been working correctly with only one problem where i need to pull all these graphs into one page.I am not able to get this working.I tried reading about... (1 Reply)
Discussion started by: pistachio
1 Replies

3. Post Here to Contact Site Administrators and Moderators

Suggestion: visitor graphs

Perhaps we could think of visitor graphs that would give a sense of both the popularity of the forum and - more importantly - the popularity of Linux and the Open Source operating systems movement. Something similar to what sourceforge has done for their projects: SourceForge.net: Project... (2 Replies)
Discussion started by: figaro
2 Replies

4. Programming

Creating area graphs in jqplot

How can area graphs be created in jqplot? Example can be seen here: dygraphs JavaScript Visualization Library In the example the line graphs and the grid are superimposed on the area graphs. I dont think it is supported out of the box for jqplot. I would normally do this with a double fill: -... (0 Replies)
Discussion started by: figaro
0 Replies

5. Programming

Help with Graphs (BFS mostly)

Okay so I posted a thread about my project before, how I need to create generated word ladders and all that. Now I am to the point where I need to create a method which will find the shortests path between a start word and an end word. For example: startWord: Head endWord: Feet And then a... (3 Replies)
Discussion started by: SilvarHawke
3 Replies

6. Shell Programming and Scripting

Monitoring Graphs using GNUPLOT

Need assistance in getting a monitoring script to create Grpahs Using GNUPLOT using below data. Graph for CPU, MEMORY , NETWORK in png. For memory can we convert the GB TO MB ----system---- ----total-cpu-usage---- ------memory-usage----- -net/total- time |usr sys idl wai hiq... (5 Replies)
Discussion started by: ajayram_arya
5 Replies

7. Red Hat

Do not show graphs cacti

hi installed caci and Snmp connection is established 10.10 (192.168.10.10) SNMP Information System:Hardware: Intel64 Family 6 Model 23 Stepping 6 AT/AT COMPATIBLE - Software: Windows Version 6.1 (Build 7601 Multiprocessor Free) Uptime: 7550665 (0 days,... (2 Replies)
Discussion started by: mnnn
2 Replies
GRAPHML2GV(1)						      General Commands Manual						     GRAPHML2GV(1)

NAME
graphml2gv - GRAPHML-DOT converter SYNOPSIS
graphml2gv [ -?v ] [ -ggname ] [ -ooutfile ] [ files ] DESCRIPTION
graphml2gv converts a graph specified in the GRAPHML format to a graph in the GV (formerly DOT) format. OPTIONS
The following options are supported: -v Turns on verbose mode -? Prints usage information and exits. -ggname The string gname is used as the name of the generated graph. If multiple graphs are generated, subsequent graphs use the name gname appended with an integer. -ooutfile Prints output to the file outfile. If not given, graphml2gv uses stdout. OPERANDS The following operand is supported: files Names of files containing 1 or more graphs in GRAPHML. If no files operand is specified, the standard input will be used. RETURN CODES
Return 0 if there were no problems during conversion; and non-zero if any error occurred. LIMITATIONS
As both the graph and graphics models of GV and GML differ significantly, the conversion can only be at best approximate. In particular, GV currently has no notion of hyperedges or edges containing graphs. At present, graphml2gv only supports the basic graph topology. Specifically, the <KEY> and <DATA> elements are not handled, though they could be. AUTHORS
Emden R. Gansner <erg@research.att.com> SEE ALSO
dot(1), libcgraph(3) 14 July 2011 GRAPHML2GV(1)
All times are GMT -4. The time now is 10:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy