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