Skip to content

Commit 4a659b3

Browse files
committed
readability improvement in usetex_demo
1 parent 7b35fa0 commit 4a659b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/pylab_examples/usetex_demo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
N = 500
88
delta = 0.6
99
X = -1 + 2. * np.arange(N) / (N - 1)
10-
pylab.plot(X, (1 - np.tanh(4. * X / delta)) / 2, # phase field tanh profiles
11-
X, (X + 1) / 2, # level set distance function
12-
X, (1.4 + np.tanh(4. * X / delta)) / 4, # composition profile
13-
X, X < 0, 'k--', # sharp interface
10+
pylab.plot(X, (1 - np.tanh(4.*X/delta))/2, # phase field tanh profiles
11+
X, (X + 1)/2, # level set distance function
12+
X, (1.4 + np.tanh(4.*X/delta))/4, # composition profile
13+
X, X < 0, 'k--', # sharp interface
1414
linewidth=5)
1515

1616
## legend

0 commit comments

Comments
 (0)