File: ex_cover.ppl

package info (click to toggle)
pyxplot 0.6.3.1%2Bds-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 848 kB
  • ctags: 267
  • sloc: python: 5,058; xml: 978; sh: 109; makefile: 45
file content (80 lines) | stat: -rw-r--r-- 2,721 bytes parent folder | download
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# EX_COVER.PPL
#
# The code in this file is part of PyXPlot
# <http://www.pyxplot.org.uk>
#
# Copyright (C) 2006-7 Dominic Ford <coders@pyxplot.org.uk>
#
# $Id: ex_cover.ppl 16 2007-02-23 13:57:21Z dcf21 $
#
# PyXPlot is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# You should have received a copy of the GNU General Public License along with
# PyXPlot; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA  02110-1301, USA

# ----------------------------------------------------------------------------

# This script produces a figure for the PyXPlot Users' Guide

# Call common initialisation script
reset
load "examples/fig_init.ppl"

# Set output destination
set output "examples/eps/ex_cover.eps"

# Main body of figure script
set multiplot
set nodisplay
set width 8

set xlabel 'invisible'
set ylabel 'invisible'
set x2label 'invisible'
set y2label 'invisible'
set nokey
logo_x = 0.0
logo_y = 0.0
set textcolour Grey80
text '\large $\frac{\hbar^2}{2m}\frac{\partial^2 \psi}{\partial \
       x^2} + V\psi = E\psi$' at logo_x+2.1, logo_y+0.5
text '\large $d \sin \theta = n\lambda$' at logo_x+0.5, logo_y+3.5

set textcolour Grey70
text '\Large $\nabla \cdot D = \rho_{\mathrm{free}}$' \
      at logo_x+2.9, logo_y+4.6
text '\Large $\nabla \times E = - \frac{\partial \bf B} \
      {\partial t}$' at logo_x+1.2, logo_y+4.0
text '\Large $\nabla \cdot B = 0$' at logo_x+0.9, logo_y+1.2
text '\Large $\nabla \times H = J_{\mathrm{free}} - \
      \frac{\partial \bf D}{\partial t}$' at logo_x+3.8,logo_y+1.8

set textcolour Grey55
text '\Large $ds^2=\left(1-\frac{2GM}{rc^2}\right) \
      dt^2$' at logo_x+0.17, logo_y+2.6
text '\large $H(t)=\frac{\dot R}{R}$' at logo_x+6.1,logo_y+3.1
text '$q(t) = - \frac{\ddot R R}{\dot R^2}$' \
     at logo_x+5.3, logo_y+3.9
text '\large $d_\mathrm{L} = \left( \frac{L}{4\pi F} \right) \
      ^\frac{1}{2}$' at logo_x+3.7, logo_y+1.2
text '\Large $\ddot x^a + \Gamma^a_{\phantom{a}bc} \
      \dot x^b \dot x^c = 0$' at logo_x+4.5, logo_y+2.5

set textcolour Black
# set label 1 '\Huge \textbf{PyXPlot}' at -8.5 , 0.05
set arrow 1 from 0.0 , -0.590 to 2.75 , -0.590 \
            with nohead linetype 3 colour 1
set arrow 2 from 2.5 , -0.590 to 2.5 , -0.325 with twoway
set label 2 '\Large ${\bf \Delta \phi}$' at 2.7, -0.5
set origin logo_x, logo_y
p [-9.5:4.8][-0.75:0.60] - x*exp(-x**2) + \
   (1/(exp((x-1)*3)+1) - 0.5)/4 - 0.2 with l lw 3 colour 1

# Now that we are finished preparing multiplot,
# turn display on
set display
refresh