Plot
From Wikisophia
Wikitex Plot is a class of Wikitex.
Gnuplot by Hans-Bernhard Broeker, et al.; for plotting two- and three-dimensional line, point, dot, box, histogram graphs or vector fields (doc | template).
Contents |
[edit] Graph of a function
The wikitext:
<plot>set samples 500 plot [-3:3][-10:10] 5*sin(3*x)+2*sin(23*x)</plot>
produces the displayed graph.
[edit] Plot 3D
[edit] Mandelbrot set
[edit] Another example
<amsmath>\frac{\sin\left(\sqrt{x^2+y^2}\right)}{\sqrt{x^2+y^2}}:</amsmath>
<plot>
set border 4095 lt -1 lw 1.000
set view 130, 10, .5
set samples 50, 50
set isosamples 50, 50
unset surface
unset colorbox
set pm3d at s
set pm3d scansbackward flush begin noftriangles nohidden3d implicit corners2color mean
splot sin(sqrt(x**2+y**2))/sqrt(x**2+y**2)
</plot>
|
[edit] Julia set
<plot>
set pm3d at s solid
set palette rgb -6,-15,-7
unset colorbox
set ticslevel 0
unset ztics
unset surface
set samples 70
set isosamples 70,70
complex(x,y)=x*{1,0}+y*{0,1}
mandel(x,y,z,n) = (abs(z)>2.0 || n>=1000)? log(n): mandel(x,y,z*z+complex(x,y),n+1)
a=-0.38
b=-0.612
set multiplot
set origin 0,0
set size 0.55,0.77
splot [-0.5:0.5][-0.5:0.5] mandel(a,b,complex(x,y),0)
set origin 0.35,-0.15
set size 0.7,0.96
set view 0,0,,,
splot [-0.5:0.5][-0.5:0.5] mandel(a,b,complex(x,y),0)
</plot>
↓







