Operating System - HP-UX
1819804 Members
3308 Online
109607 Solutions
New Discussion юеВ

How to plot png in gnuplot

 
Popy
Regular Advisor

How to plot png in gnuplot

Hi all,

I collected the system details with sar and other utilities. Can someone tell me how to generate .png files with this ?

Here is where I am.....

# /usr/local/bin/gnuplot

G N U P L O T
Unix version 3.7
patchlevel 1
last modified Fri Oct 22 18:00:00 BST 1999

Copyright(C) 1986 - 1993, 1998, 1999
Thomas Williams, Colin Kelley and many others

Type `help` to access the on-line reference manual
The gnuplot FAQ is available from
<>

Send comments and requests for help to
Send bugs, suggestions and mods to


Terminal type set to 'unknown'
gnuplot>

I found there is a command 'plot' to get a some image....just wondering what info do I need to provide here.

Guru's ...please help me.

Cheer's
Raneesh Vijayan

3 REPLIES 3
saju_2
Respected Contributor

Re: How to plot png in gnuplot

Hi Raneesh

I didn't get ur question completly...!!
I think below link will help you. It says

Output to a file

By selecting a different terminal type, it is possible to output to a large number of graphic formats, you can get a full list by typing 'set term', lets ouput this graph using the png terminal (Portable network graphics).

gnuplot> set terminal png
Terminal type set to 'png'
Options are ' small color'

This tells us that we set the terminal type to png with the default options small and color. 'set term' gives a list of the different options for each terminal type.

We need to supply a filename for the output, this is done using the command 'set out ', then simply replot the graph and voila!

gnuplot> set output 'sin_graph.png'

http://mathewpeet.org/computing/gnuplot/tutorial1/

Also

http://www.mayoxide.com/sargraph/sargraph.ksh


Regards
CS
Sandman!
Honored Contributor

Re: How to plot png in gnuplot

Here's an excellent tutorial and reference to gnuplot.

enjoy!!!
Sandman!
Honored Contributor

Re: How to plot png in gnuplot

Here's the link to the tutorial that i forgot to include in my previous post:

http://www-128.ibm.com/developerworks/library/l-gnuplot/