set xdata time
set timefmt "%Y%m%d %H:%M:%S"
plot "/tmp/disk.dat-web01-20090523.dsk" using 1:4 title '[DSK:sda]Reads', \
"" using 1:5 title '[DSK:sda]RMerge', \
"" using 1:6 title '[DSK:sda]RKBytes', \
...
it makes no sense to plot 'Date' and 'Time', these values are on the x-axis.
and, plotting a string ('Name') makes no sense, too.
more information you can find in the manual:
http://www.gnuplot.info/docs/gnuplot.html
or use the 'help' command within gnuplot:
help timefmt
help set xdata
help ...
Madan Thapa wrote:
>
> Hi,
>
> I am new to gnuplot and need your advice on setting up a graph
>
>
> Data to be plotted
> ======================================================
> [root@... html]# cat /tmp/disk.dat-web01-20090523.dsk
> ################################################################################
> # Collectl: V3.3.2-1 HiRes: 1
> # Host: srv01 DaemonOpts:
> # Distro: CentOS release 5.2 (Final) Platform: X7DBU
> ################################################################################
> #Date Time [DSK:sda]Name [DSK:sda]Reads [DSK:sda]RMerge [DSK:sda]RKBytes
> [DSK:sda]Writes [DSK:sda]WMerge [DSK:sda]WKBytes [DSK:sda]Request
> [DSK:sda]QueLen [DSK:sda]Wait [DSK:sda]SvcTim [DSK:sda]Util [DSK:hdb]Name
> [DSK:hdb]Reads [DSK:hdb]RMerge [DSK:hdb]RKBytes [DSK:hdb]Writes
> [DSK:hdb]WMerge [DSK:hdb]WKBytes [DSK:hdb]Request [DSK:hdb]QueLen
> [DSK:hdb]Wait [DSK:hdb]SvcTim [DSK:hdb]Util
> 20090523 21:57:38 sda 0 0 0 0 0 0 0 0 0 0 0 hdb 0 0 0 0 0 0 0 0 0 0 0
> 20090523 21:57:39 sda 0 0 0 0 0 0 0 0 0 0 0 hdb 0 0 0 0 0 0 0 0 0 0 0
> 20090523 21:57:40 sda 0 0 0 10 128 551 55 0 0 0 0 hdb 0 0 0 0 0 0 0 0 0 0
> 0
> 20090523 21:57:41 sda 0 0 0 0 0 0 0 0 0 0 0 hdb 0 0 0 0 0 0 0 0 0 0 0
> 20090523 21:57:42 sda 0 0 0 0 0 0 0 0 0 0 0 hdb 0 0 0 0 0 0 0 0 0 0 0
> [root@... html]#
>
>
>
>
> Fields to plot would be like :
> ======================================================
>
> Date
> Time
> [DSK:sda]Name
> [DSK:sda]Reads
> [DSK:sda]RMerge
> [DSK:sda]RKBytes
> [DSK:sda]Writes
> [DSK:sda]WMerge
> [DSK:sda]WKBytes
> [DSK:sda]Request
> [DSK:sda]QueLen
> [DSK:sda]Wait
> [DSK:sda]SvcTim
> [DSK:sda]Util
>
> [DSK:hdb]Name
> [DSK:hdb]Reads
> [DSK:hdb]RMerge
> [DSK:hdb]RKBytes
> [DSK:hdb]Writes
> [DSK:hdb]WMerge
> [DSK:hdb]WKBytes
> [DSK:hdb]Request
> [DSK:hdb]QueLen
> [DSK:hdb]Wait
> [DSK:hdb]SvcTim
> [DSK:hdb]Util
>
>
>
> Data in the fiels would be like:
> ======================================================
> 20090523 20:27:05 sda 0 0 0 0 0 0 0 0 0 0 0 hdb 0 0 0 0 0 0 0 0 0 0 0
>
>
>
>
>
> I tried something like followig however was not successful:
>
>
> plot "/tmp/disk.dat-web01-20090523.dsk" using 1:1 title 'Date', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:2 title 'Time', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:3 title '[DSK:sda]Name', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:4 title '[DSK:sda]Reads', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:5 title '[DSK:sda]RMerge', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:6 title '[DSK:sda]RKBytes', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:7 title '[DSK:sda]Writes', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:8 title '[DSK:sda]WMerge', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:9 title '[DSK:sda]WKBytes', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:10 title '[DSK:sda]Request', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:11 title '[DSK:sda]QueLen', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:12 title '[DSK:sda]Wait', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:13 title '[DSK:sda]SvcTim', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:14 title '[DSK:sda]Util', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:15 title 'Date', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:16 title 'Time', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:17 title '[DSK:sdb]Name', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:18 title '[DSK:sdb]Reads', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:19 title '[DSK:sdb]RMerge', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:20 title '[DSK:sdb]RKBytes', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:21 title '[DSK:sdb]Writes', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:22 title '[DSK:sdb]WMerge', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:23 title '[DSK:sdb]WKBytes', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:24 title '[DSK:sdb]Request', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:25 title '[DSK:sdb]QueLen', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:26 title '[DSK:sdb]Wait', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:27 title '[DSK:sdb]SvcTim', \
> "/tmp/disk.dat-web01-20090523.dsk" using 1:28 title '[DSK:sdb]Util'
>
>
>
>
>
>
> Can you advise how can we plot them in 2d ( probably with time in x axis
> and
> data in y axis ) .
>
>
> Thanks
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals.
> Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://www.creativitycat.com
> _______________________________________________
> Gnuplot-info mailing list
> Gnuplot-info@...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
--
View this message in context: http://www.nabble.com/gnuplot-graph-setup-help-tp23690286p23693163.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|