gnuplot.tst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. plot(sin x,x=(-3 .. 3));
  2. plot(s=sin phi,phi=(-3 .. 3));
  3. plot(sin phi,cos phi,phi=(-3 .. 3));
  4. plot(sin(1/x),x=(-1 .. 1),y=(-3 .. 3));
  5. plot(sin(1/x),x=(-10 .. 10));
  6. plot(y=tan x,y=(-10 .. 10));
  7. plot (cos sqrt(x**2 + y**2),x=(-3 .. 3),y=(-3 .. 3));
  8. plot (cos sqrt(x**2 + y**2),x=(-3 .. 3),y=(-3 .. 3),hidden3d);
  9. plot(x*y, x=(0 .. 2), y=(0 .. 2));
  10. plot(x*y, x=(-2 .. 2), y=(-2 .. 2));
  11. plot(x+y, x=(0 .. 2), y=(0 .. 2));
  12. plot(1/(x**2+y**2),x=(-0.5 .. 0.5),y=(-0.5 .. 0.5));
  13. plot(1/(x**2+y**2),x=(-0.5 .. 0.5),y=(-0.5 .. 0.5),hidden3d);
  14. plot(1/(x**2+y**2),x=(0.1 .. 5),y=(0.1 .. 5),size="0.7,1");
  15. plot(1/(x**2+y**2),x=(0.1 .. 5),y=(0.1 .. 5),view="30,89");
  16. plot(1/(x**2+y**2),x=(-0.5 .. 0.5),y=(-0.5 .. 0.5),
  17. hidden3d,contour,view="70,20");
  18. plot(sinh(x*y)/sinh(2*x*y),hidden3d);
  19. % general curves and surfaces computed as lists of data points
  20. plot {{0,0},{0,1},{1,1},{0,0},{1,0},{0,1},{0.5,1.5},{1,1},{1,0}};
  21. on rounded;
  22. w:=for j:=1:200 collect {1/j*sin j,1/j*cos j,j/200}$
  23. plot w;
  24. w:= {for j:=1 step 0.1 until 20 collect
  25. {1/j*sin j,1/j*cos j,j},
  26. for j:=1 step 0.1 until 20 collect
  27. {(0.1+1/j)*sin j,(0.1+1/j)*cos j,j}
  28. }$
  29. plot w;
  30. dd:=pi/15;
  31. w:=for u:=dd step dd until pi-dd collect
  32. for v:=0 step dd until 2pi collect
  33. {sin(u)*cos(v), sin(u)*sin(v), cos(u)}$
  34. plot w;
  35. end;