dcsimg
Linux Today: Linux News On Internet Time.




More on LinuxToday


Generating Graphs with gnuplot, Part 3

Jul 10, 2009, 21:04 (0 Talkback[s])
(Other stories by Ben Martin)

WEBINAR:
On-Demand

Re-Imagining Linux Platforms to Meet the Needs of Cloud Service Providers


"The dataset has been completely made up, and instead of using a column from the dataset as the x-axis values, the labels have been explicitly supplied for each row in the first column. The extra :xtic(1) column specification in the first using clause tells gnuplot what to use for the x-axis tic labels. Because of the "<" at the start of the file name, the data is taken from the standard output of the sqlite3 command which issues the query to the database. Note that the second using clause is specified as the empty string so the same query is used for both using clauses. The downside of taking the data from a sub-command like this is that the command is executed for each using clause, in this case causing the query to be run twice. The gain is that it is a fairly quick and dirty way to get the data if the query is simple."

Complete Story

Related Stories: