FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gnuplot/tutorial/eg7.plt at 5.5 · gnuplot/gnuplot · GitHub
gnuplot
gnuplot
Repository navigation
Code
Pull requests
2
(2)
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
gnuplot
/
tutorial
/
eg7.plt
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (29 loc) · 1.16 KB
Breadcrumbs
gnuplot
/
tutorial
/
eg7.plt
Copy path
File metadata and controls
30 lines (29 loc) · 1.16 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
set
term
epslatex
color solid
set
output
'
eg7.tex
'
unset
border
set
dummy
u
,v
unset
key
unset
encoding
set
parametric
set
view
60
,
30
,
1.2
,
1.3
set
isosamples
50
,
20
set
hidden3d
offset
1
trianglepattern
3
undefined
1
altdiagonal bentover
set
noxtics
set
noytics
set
noztics
set
title
"
Interlocking Tori - PM3D surface with depth sorting
"
set
urange
[
-
3.14159
:
3.14159
]
noreverse
nowriteback
set
vrange
[
-
3.14159
:
3.14159
]
noreverse
nowriteback
set
pm3d
depthorder
x
=.
10
;
y
=.
15
;
dy
=.
05
set
label
"
left torus:
"
at
screen
x
,
y
;
y
=y-dy
set
label
'
$x=\cos u+\frac{1}{2}\cos u \cos v$
'
at
screen
x
,
y
;
y
=y-dy
set
label
'
$y=\sin u+\frac{1}{2}\sin u \cos v$
'
at
screen
x
,
y
;
y
=y-dy
set
label
"
$z=
\\
frac{1}{2}
\\
sin v$
"
at
screen x,y
x
=.
65
;
y
=.
08
set
label
'
\parbox{2.5in}{right torus:\\$x=1+\cos u+\fr\
ac{1}{2}\cos u \cos v$\\$y=\frac{1}{2}\sin v$\\\
$z=\sin u + \frac{1}{2}\sin u \cos v$}
'
at
screen x,y
left
set
pm3d
interpolate
1
,
1
flush begin noftriangles nohidden
3
d corners
2
color mean
splot
cos
(
u
)+.
5
*
cos
(
u
)*
cos
(v),
sin
(
u
)+.
5
*
sin
(
u
)*
cos
(v),.
5
*
sin
(v)
with
pm3d
, \
1
+
cos
(
u
)+.
5
*
cos
(
u
)*
cos
(v),.
5
*
sin
(v),
sin
(
u
)+.
5
*
sin
(
u
)*
cos
(v)
with
pm3d
Back
|
FazBrowse Home
|
New Git URL