~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to src/demo/ode/lorenz/plot.py

  • Committer: Johannes Ring
  • Date: 2008-03-05 22:43:06 UTC
  • Revision ID: johannr@simula.no-20080305224306-2npsdyhfdpl2esji
The BIG commit!

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Import matplotlib
2
 
from pylab import *
3
 
 
4
 
# Import solution
5
 
from solution import *
6
 
 
7
 
# Plot solution
8
 
figure(1)
9
 
plot(t, u[:, 0], t, u[:, 1], t, u[:, 2])
10
 
xlabel('t')
11
 
ylabel('U(t)')
12
 
title('Lorenz')
13
 
 
14
 
show()