GnuPlot in MoinMoin (from ParserMarket )

GnuPlot in MoinMoin 테스트

plot sin(x),cos(x^2)

plot sin(x),cos(x*x)

splot exp(x)+exp(y)

splot exp(x)+exp(y)

set pm3d explicit
set parametric
splot cos(u)*cos(v),cos(u)*sin(v),sin(u)

set pm3d explicit
set parametric
splot cos(u)*cos(v),cos(u)*sin(v),sin(u)

set xtics("min"-pi,"counter"0,"max"pi)
plot [-pi:pi]sin(x**2)
splot exp(x)+exp(y)

set xtics("min"-pi,"counter"0,"max"pi)
plot [-pi:pi]sin(x**2)
splot exp(x)+exp(y)

set pm3d at st
#set grid
set key below
set border 4095
set surface
set samples 25
set isosamples 20
set ticslevel 0
set title "surface and pm3d (surface and top) of radial sinc function"
splot [-15:15.01] [-15:15.01] [-0.2:1] \
  sin(sqrt(x**2+y**2)) / sqrt(x**2+y**2)

set pm3d at st
#set grid
set key below
set border 4095
set surface
set samples 25
set isosamples 20
set title "surface and pm3d (surface and top) of radial sinc function"
splot [-15:15.01] [-15:15.01] [-0.2:1] \
sin(sqrt(x**2+y**2)) / sqrt(x**2+y**2)

set pm3d explicit
set palette rgbform 9,8,9
set parametric; set hidden3d
set urange [0:2*pi];set vrange [-pi:pi]
set isosamples 24,16
set size 0.8,1; set view 60,20,1,1
set ticslevel 0
x1(u,v)=cos(u)+.5*cos(u)*cos(v)
y1(u,v)=sin(u)+.5*sin(u)*cos(v)
z1(u,v)=.5*sin(v)
x2(u,v)=1+cos(u)+.5*cos(u)*cos(v)
y2(u,v)=.5*sin(v)
z2(u,v)=sin(u)+.5*sin(u)*cos(v)
set multiplot
splot x1(u,v), y1(u,v), z1(u,v) w pm3d, \
      x2(u,v), y2(u,v), z2(u,v) w pm3d
splot x1(u,v), y1(u,v), z1(u,v) lt 3, \
      x2(u,v), y2(u,v), z2(u,v) lt 5

set pm3d explicit
set palette rgbform 9,8,9
set parametric; set hidden3d
set urange [0:2*pi];set vrange [-pi:pi]
set isosamples 24,16
set ticslevel 0
x1(u,v)=cos(u)+.5*cos(u)*cos(v)
y1(u,v)=sin(u)+.5*sin(u)*cos(v)
z1(u,v)=.5*sin(v)
x2(u,v)=1+cos(u)+.5*cos(u)*cos(v)
y2(u,v)=.5*sin(v)
z2(u,v)=sin(u)+.5*sin(u)*cos(v)
set multiplot
splot x1(u,v), y1(u,v), z1(u,v) w pm3d, \
x2(u,v), y2(u,v), z2(u,v) w pm3d
splot x1(u,v), y1(u,v), z1(u,v) lt 3, \
x2(u,v), y2(u,v), z2(u,v) lt 5

set yrange [0:550]
set xrange [0:10]
 
set data style boxes
set style fill solid
set boxwidth 0.4
set title "Class Complexity"
set ylabel "number of classes"
set xlabel "complexity"
set grid ytics
set label "99" at 0.5, 109 front center
set label "143" at 1.5, 153 front center
set xtics ("1+"0.5,"2+"1.5,"4+"2.5)
plot "-" using ($1+0.5):($2) with boxes title ""
0 99
1 143
2 490
3 283
4 280
5 192
6 99
7 49
8 13
9 5
10 0
e

set yrange [0:550]
set xrange [0:10]
set data style boxes
set style fill solid
set boxwidth 0.4
set ylabel "number of classes"
set xlabel "complexity"
set grid ytics
set label "99" at 0.5, 109 front center
set label "143" at 1.5, 153 front center
set xtics ("1+"0.5,"2+"1.5,"4+"2.5)
plot "-" using ($1+0.5):($2) with boxes title ""
0 99
1 143
2 490
3 283
4 280
5 192
6 99
7 49
8 13
9 5
10 0
e


CategoryMoinMoin

Bhn: GnuPlotInMoinMoin (last edited 2011-08-18 12:39:08 by yong27)

web biohackers.net