Plotting With Gnuplot: Xiaoxu Guan High Performance Computing, LSU
Plotting With Gnuplot: Xiaoxu Guan High Performance Computing, LSU
Plotting With Gnuplot: Xiaoxu Guan High Performance Computing, LSU
Xiaoxu Guan
High Performance Computing, LSU
September 28, 2016
k1 k1
continuation;
• Plot on a canvas:
Function Description
log(x) log function of x in natural base (e)
log 10(x) like the above, but in base 10
rand(0) generator of pseudo random numbers (real)
√
sqrt(x) x
a**b ab
exp(x) ex
sin(x) sin(x)
tan(x) tan(x)
abs(x) abs(x)
sgn(x) +1 if x > 0, or −1 if x < 0
gamma(x) gamma(x)
Information Technology Services
LSU HPC Training Series, Fall 2016 p. 7/27
Plot functions, curves, points, . . .
• How to control linetype, linewidth, or linecolor, . . .:
• Again, this is terminal dependent: run command test;
postscript terminal test -1
show ticscale
0
filled polygons: 1
2
3
4
5
postscript
6
7
8
terminal
9
left justified 10
centre+d text 11
g
de
right justified 12
rotated ce+ntred text
13
+4
lt ranges
by
14
test of character width:
d
te
15
ta
ro
12345678901234567890 16
from -1 to 32
ro
17
ta
te
18
d
by
19
Enhanced text: xn+1
-4
5
0 20
de
g
21
22
23
linewidth 24
lw 6 25
26
lw 5 27
lw 4 pattern fill 28
0 1 2 3 4 5 6 7 8 9 29
lw 3 30
lw 2 31
32
lw 1
png
terminal
lt ranges
from -1 to 22
• set origin
(0.1,0.1)
• In the screen
coordinates, set
borders screen (1,1) the origin of
graph.
graph (0,0)
• Origin is useful to
multiple plots.
× • Each panel can
margin have its own
screen (0,0) origin.
origin of graph (0.1,0.1)
50 (a)
40 20 which all panels will be
30
10
20 drawn.
1
10
1
1 5 10 15 20 • Generally, we can use
1 50 100 150 200 250
Number of OpenMP threads
set multiplot to
160
140 Offload to the Xeon Phi organize multiple
1 node
120 4 nodes
9 nodes
panels in any way we
Speedup
100 16 nodes
80 (b) want.
60
40
• Each panel can have its
20 own origin, size, and
1
1 50 100 150 200 250 margins, etc.
Number of OpenMP threads
colorbox, etc;
• Let’s consider the color scheme: palette;
Questions?
sys-help@loni.org