How to show multiple graphs in the output: Plot sin(x) title 'Sine Function', tan(x) title 'Tangent' Plot '4col.csv' u 1:2 w l title 'Square', '4col.csv' u 1:3 w l title 'Double' Plot '4col.csv' using 1:2 with lines title 'Square', '4col.csv' using 1:3 with lines title 'Double' The second command shown creates this chart: Plot '4col.csv' using 1:2 with lines, '4col.csv' using 1:3 with lines, '4col.csv' using 1:4 with lines Plot '4col.csv' using 1:2 with lines, '4col.csv' using 1:3 with lines To show multiple curves on one plot, use the 4col.csv file: You can adorn your plots with titles, labels, legend, arrows, and more: Plot '2col.csv' u 1:2 w l title 'Squared' # 'u' - using, 'w l' - with lines Plot '2col.dat' using 2:1 # 2=x, 1=y (reverse the graph) Plot '2col.dat' using 1:2 # 1=x, 2=y (this is the default) Plot '2col.dat' with lines title 'my curve' # this is really the line-title in the legend Plot '2col.dat' with linespoints # plot only elements 3 thru 7 Plot '2col.dat' with linespoints # plot the first 5 elements Plot '2col.dat' with points # just points (default) Plot '2col.dat' with linespoints # line and points Plot '2col.dat' with lines # connect points with a line Plot '2col.dat' # assumes col1=x, col2=y shows '+' at data points
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |