The use of gnuplot in IOzone

Source: Internet
Author: User

For the current version of the iozone3_353 version of the Code, The gnuplot version used to generate the image is dependent on the 4.0.0, but the current gnuplot version is 4.4.2, and the depressing thing is that some of the instructions are incompatible, so there is an error when the drawing script is used under the latest version.

Therefore, you need to change the script manually. Here, record the script I wrote in 4.4.2.

Set terminal PostScript enhance solid color

Set the terminal type as PS file, is to paint on PS file, in order to later facilitate the use of PS to generate PDF

Set title "XXX"

Set Title

Set Xtics rotate by 0,-1.0

Set the coordinates of the x-axis to rotate 90 degrees and leave part of the x axis.

Actually, it's gone, but it's not a choice, I don't know why, because the label I'm experimenting with in the back can rotate.

Set Logscale x 2

Sets the x coordinates to 2, with a multiple display

Set Autoscale Z

Set the z-axis display to be automatic

Set Xyplane at 0

Set the z-axis to display from 0 and the entire image is left blank at the bottom

Set Xlabel "xxx" offset 0,-2.0

To set the label on the x-axis, leave part of the x axis if you need to rotate and add rotate by how many degrees, you can

Set zrange [Xxx:xxx]

Set the scope of the axis display

Set style data lines

Set the style, the style of data, the style is lines, is to use the line to draw the data

Set style Line 1 lt RGB "Red" LW 1

Set line style name is 1, with RGB color, red, line width for 1,lw=line width, feel a lot of abbreviations ah

Set Output "Xxx.ps"

Set the output to a file

Splot ' xxx ' using 1:2:3 ls 1 title "yyy"

Splot used to draw a 3D diagram, use the data of the xxx file, use the first column to do X, the second column to do Y, the third column to do Z, the type of line is 1,ls=line style, plus the title yyy

This yyy is usually shown as a legend.

Pause-1 "XXXX"

Display xxxx string, wait for carriage return, mainly as a pause, especially on the X11 output, similar to the getch inside the TC, used to view the output results.

There are some settings, such as the grid did not mention that the feeling of specific or to see the manual to facilitate the main is to understand the spirit, know how to use the command is good.

The last time you build a PDF is to merge multiple PS files into one file

The order I use is

Gs-dbatch-sdevice=pdfwrite-soutputfile=xxx.pdf 1.ps 2.ps ...

It's OK.

And here's what we're going to mention.

I wrote a xxx.dem template, and then I used some variables, and I used _filename, _path and the like.

Then replace the corresponding string with sed "s/xxxx/$xxxx/g" in the shell script

Should be used in the shell of the variable, so the reference in SED to use double quotes, the inside of the $xxx can be replaced

IOzone generated data files are XLS form, the source code used in awk to extract, I was copied

A large data file is extracted using awk to form different small data files for different test items

And then generate the diagram separately

Although I'm not very good at 3D, I'm pretty.

Then feel the gnuplot of the powerful drawing, learning math enough, high school mathematics must be able to draw out, university, I have learned should also be all right, true cow ~ ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.