Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Linear Algebra and the C Language/a0gf

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

__NOTOC__ test This example gives the basic information: # --------------------- # save this file as : a_main.plt # Then into gnuplot : load "a_main.plt" # # test reset # --------------------- Line break # --------------------- # save this file as : a_main.plt # Then into gnuplot : load "a_main.plt" # # \n -> \ # plot cos(x),\ sin(x),\ .4,\ -.4 reset # --------------------- linetype | lt <0..15> Each number corresponds to a different color. (see test) # --------------------- # save this file as : a_main.plt # Then into gnuplot : load "a_main.plt" # # linetype | lt <0..15> # plot cos(x) lt 1,\ sin(x) lt 2,\ .4 lt 3,\ -.4 lt 3 reset # --------------------- linewidth | lw <1.. 6> Each number corresponds to a different thickness. # --------------------- # save this file as : a_main.plt # Then into gnuplot : load "a_main.plt" # # # linewidth | lw <1.. 6> # plot cos(x) lt 1 lw 1,\ sin(x) lt 2 lw 3,\ .4 lt 3 lw 4,\ -.4 lt 3 lw 6 reset # --------------------- plot "data" # --------------------- # save this file as : a_main.plt # Then into gnuplot : load "a_main.plt" # # plot "data" reset # --------------------- * Create a "data" file with this data: -5 25 -4 16 -3 9 -2 4 -1 1 0 0 1 1 2 4 3 9 4 16 5 25 pointtype | pt <0..15> Each number corresponds to a different pattern of dots. (see test) # --------------------- # save this file as : a_main.plt # Then into gnuplot : load "a_main.plt" # # pointtype | pt <0..15> # plot "data" pt 10 reset # --------------------- pointsize | ps <1.. > Each number corresponds to different point sizes. (see test) # --------------------- # save this file as : a_main.plt # Then into gnuplot : load "a_main.plt" # # pointsize | ps <1.. > # plot "data" pt 10 ps 3 reset # --------------------- with linesp The points are connected by segments. # --------------------- # save this file as : a_main.plt # Then into gnuplot : load "a_main.plt" # # linetype | lt <0..15> (color) # linewidth | lw <1.. 6> (size) # pointsize | ps <1.. > (size) # plot "data" with linesp lt 3 lw 3 ps 3 reset # --------------------- pt 0 Without the points. # --------------------- # save this file as : a_main.plt # Then into gnuplot : load "a_main.plt" # # linetype | lt <0..15> (color) # linewidth | lw <1.. 6> (size) # pointsize | ps <1.. > (size) # plot "data" with linesp lt 3 lw 3 ps 3 pt 0 reset # --------------------- set zeroaxis lt 8 lw 3 # --------------------- # save this file as : a_main.plt # Then into gnuplot : load "a_main.plt" # # linetype | lt <0..15> (color) # linewidth | lw <1.. 6> (size) # set zeroaxis lt 8 lw 3 plot sin(x),\ cos(x) reset # --------------------- set grid lt 8 lw 3 # --------------------- # save this file as : a_main.plt # Then into gnuplot : load "a_main.plt" # # linetype | lt <0..15> (color) # linewidth | lw <1.. 6> (size) # pointsize | ps <1.. > (size) # set grid lt 8 lw 3 plot sin(x),\ cos(x) reset # --------------------- Example # --------------------- # save this file as : a_main.plt # Then into gnuplot : load "a_main.plt" # # linetype | lt <0..15> (color) # linewidth | lw <1.. 6> (size) # pointsize | ps <1.. > (size) # set zeroaxis lt 8 lw 3 set grid plot [-6.:6.] [-1.4:1.4]\ sin(x),\ cos(x) reset # ---------------------