Gnuplot.jl/docs/src/examples.md
2020-03-24 11:57:50 +01:00

28 lines
487 B
Markdown

# Examples
```julia
@gp "set multiplot layout 1,2"
@gp :- 1 "plot sin(x) w l"
x = y = -10:0.33:10
fz(x,y) = sin.(sqrt.(x.^2 + y.^2))./sqrt.(x.^2+y.^2)
fxy = [fz(x,y) for x in x, y in y]
@gsp :- 2 x y fxy "w pm3d notit"
```
@gp "set multiplot layout 1,2"
@gp :- 2 "unset grid" "unset border" "unset tics" :-
@gp :- 1 "plot sin(x) w l"
x = y = -10:0.33:10
fz(x,y) = sin.(sqrt.(x.^2 + y.^2))./sqrt.(x.^2+y.^2)
fxy = [fz(x,y) for x in x, y in y]
@gsp :- 2 x y fxy "w pm3d notit"