Create a Gnuplot image and save it as an image.

Source: Internet
Author: User
Environment: Fedora12 when using gnuplot for scientific plotting, go to gnuplot in shell and draw one line at a time, which is troublesome. We can put each painting command in a single file, then use gnuplot to load the plot file. Example: 1. plot the graph's plot file sinx. plt ################ Save the result as an image: method 1. Multiple images are saved in this mode, including intermediate result images # settermpost

Environment: Fedora12

When using gnuplot for scientific plotting, It is troublesome to enter gnuplot in shell and draw a line by line. We can put each painting command into a single file, then use gnuplot to load the plot file. Example:

1. plot the graph's plot file sinx. plt

################ Save the result as an image: method 1. This method saves multiple images, including intermediate result images.
# Set term post color
# Set output 'a. Ps'
################
Plot sin (x)
Set grid
Set xlabel "X"
Set ylabel "Y"
Replot
############### Save the result as an image: method 2. The saved result is the final image.
Set terminal postscript eps color
Set output './gnuplot_result/sin. eps' # You can specify the Save path. This example is saved in the gnuplot_result file in the current path.
Replot
Set output
################

2. Input "gnuplot sinx. plt" in the shell command line to draw the image and save it to the specified path.

For more information about Fedora, see Fedora topics page http://www.linuxidc.com/topicnews.aspx? Tid = 5

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.