Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
readability improvement in usetex_demo
  • Loading branch information
twmr committed Oct 22, 2014
commit 4a659b30e0f7acaa859b5e28ec0eb876aa538d29
8 changes: 4 additions & 4 deletions examples/pylab_examples/usetex_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
N = 500
delta = 0.6
X = -1 + 2. * np.arange(N) / (N - 1)
pylab.plot(X, (1 - np.tanh(4. * X / delta)) / 2, # phase field tanh profiles
X, (X + 1) / 2, # level set distance function
X, (1.4 + np.tanh(4. * X / delta)) / 4, # composition profile
X, X < 0, 'k--', # sharp interface
pylab.plot(X, (1 - np.tanh(4.*X/delta))/2, # phase field tanh profiles
X, (X + 1)/2, # level set distance function
X, (1.4 + np.tanh(4.*X/delta))/4, # composition profile
X, X < 0, 'k--', # sharp interface
linewidth=5)

## legend
Expand Down