Creating graphs


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Creating graphs
# 1  
Old 06-06-2010
Creating graphs

Platform: solaris 9 x86


I want to be able to create excel like line graphs with basic input data and use it on a webpage or worst case so I can use it to insert to a document

type of input file I would have, example below

datainput.txt:
Code:
date,requests,failures,success
20100501,80,10,70
20100502,75,5,70
20100503,85,25,60
20100504,66,6,60

I know there are various freeware tools to help but I don't have any experience with them and need some help.

Preferably could someone advise for free ware tool I could use and an example of how to use it graphing the data from input file such as the example above

can you help?
I am used to ksh scripting and the various flavours of unix.
Any help would b appreciated.

Last edited by DukeNuke2; 06-06-2010 at 07:07 AM..
# 2  
Old 06-06-2010
Hi,
have a look at GNUPlot, gnuplot homepage, that has helped me a lot before. Easy to use in any script based context.

Best regards,
Lakris
# 3  
Old 06-06-2010
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?
# 4  
Old 06-06-2010
Have a look at PSPP: GNU PSPP It is intended as a free replacement for the proprietory software package SPSS and can produce a number of graphs including histograms, pie-charts and box-plots. It supports delimited & fixed-width text, SPSS .sav files and a number of other input file formats. It can also output to HTML (among other formats) and the accompanying documentation is very well written.

Last edited by quadphonic; 06-06-2010 at 11:39 AM..
# 5  
Old 06-06-2010
# 6  
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
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

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

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

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

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

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

7. 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
Login or Register to Ask a Question