File tree Expand file tree Collapse file tree 19 files changed +25
-31
lines changed Expand file tree Collapse file tree 19 files changed +25
-31
lines changed Original file line number Diff line number Diff line change 22using Gnuplot
33x, y = [0 ,1 ,2 ], [0 ,1 ,2 ]
44Z = [10 10 10 ; 10 3 10 ; 10 2 10 ]
5- @gsp x y Z " w l lc 'red'"
5+ @gsp x y Z " w l lc 'red'" " set view equal xyz "
66save (term= " png" , output= " ./code/plt3d_ex1.png" ) # hide
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ x = [r * cos(θ) * sin(ϕ) for θ in Θ, ϕ in Φ]
66y = [r * sin (θ) * sin (ϕ) for θ in Θ, ϕ in Φ]
77z = [r * cos (ϕ) for θ in Θ, ϕ in Φ]
88@gsp " set pm3d depthorder" :-
9- @gsp :- x y z " w l"
9+ @gsp :- x y z " w l" " set view equal xyz "
1010save (term= " pngcairo size 600,600" , output= " sphere1.png" ) # hide
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ x = [r * cos(θ) * sin(ϕ) for θ in Θ, ϕ in Φ]
66y = [r * sin (θ) * sin (ϕ) for θ in Θ, ϕ in Φ]
77z = [r * cos (ϕ) for θ in Θ, ϕ in Φ]
88@gsp " set pm3d depthorder" :-
9- @gsp :- " set style fill transparent solid 0.5"
9+ @gsp :- " set style fill transparent solid 0.5" " set view equal xyz "
1010@gsp :- x y z " w pm3d notit" " set xyplane 0" palette (:viridis )
11- save (term= " pngcairo size 600,600" , output= " sphere2.png" ) # hide
11+ save (term= " pngcairo size 600,600" , output= " sphere2.png" ) # hide
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ x = [r * cos(θ) * sin(ϕ) for θ in Θ, ϕ in Φ]
66y = [r * sin (θ) * sin (ϕ) for θ in Θ, ϕ in Φ]
77z = [r * cos (ϕ) for θ in Θ, ϕ in Φ]
88@gsp " set pm3d depthorder" :-
9- @gsp :- " set style fill solid 1.0 noborder"
9+ @gsp :- " set style fill solid 1.0 noborder" " set view equal xyz "
1010@gsp :- " set pm3d lighting primary 0.5 specular 0.6"
1111@gsp :- x y z " w pm3d notit" " set xyplane 0" palette (:viridis )
12- save (term= " pngcairo size 600,600" , output= " sphere3.png" ) # hide
12+ save (term= " pngcairo size 600,600" , output= " sphere3.png" ) # hide
You can’t perform that action at this time.
0 commit comments