File: latex_demo.dem

package info (click to toggle)
gnuplot 6.0.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,940 kB
  • sloc: ansic: 95,319; cpp: 7,590; makefile: 2,470; javascript: 2,328; sh: 1,531; lisp: 664; perl: 304; pascal: 191; tcl: 88; python: 46
file content (45 lines) | stat: -rw-r--r-- 1,234 bytes parent folder | download | duplicates (3)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

# set title "would be nice if this would automatically go into the caption!"
set xtics 0.5 nomirror
set tics format "%.1f"
set margins -1,0,7,0
set xrange [-1:1]
set yrange [1:3]
set key notitle invert under reverse Left left spacing 2 samplen 0.7

# Explicitly set encoding to UTF-8. Otherwise cairolatex would attempt to
# change the inputencoding, which won't work with xelatex and lualatex.
set encoding utf8

Title_E = 'EllipticE$(k)=\int_0^{\pi/2} {\sqrt{1-k^2\sin^2\theta}}~d\theta$'
Title_K = 'EllipticK$(k)=\int_0^{\pi/2} {\sqrt{1-k^2\sin^2\theta}~}^{-1}~d\theta$'

set arrow 1 filled from graph 0.4, 0.7 to graph 0.6, 0.7
set label 1 at graph 0.5, 0.75 "$k$" center

set term dumb
plot EllipticE(x) lw 3 title Title_E, \
     EllipticK(x) lw 3 title Title_K


set term pict2e color texarrows texpoints font "cmr,9" size 3.5in, 2.4in
set output 'latex_pict2e.tex'
replot
unset output

set term cairolatex color font "cmr,10" size 3.5in, 2.4in fontscale 0.7
set output 'latex_cairo.tex'
replot
unset output

set term tikz nogppoints size 3.5in, 2.4in
set output 'latex_tikz.tex'
replot
unset output

set term epslatex color 10 size 3.5in,2.4in standalone
set output 'epslatex.tex'
set margins -1,-1,7,-1
replot
unset output