#
# vanderpol_dst.py
#
#
# This script uses PyDSTool to plot a solution to the
# differential equations defined in vanderpol.py
#
# This file was generated by the program VFGEN (Version:2.4.0)
# Generated on 10-Jul-2008 at 17:42
#

from matplotlib.font_manager import FontProperties
import vanderpol
import PyDSTool

# Compute the solution
ds = vanderpol.args()
ode = PyDSTool.Generator.Vode_ODEsystem(ds)
traj = PyDSTool.ode.compute('traj')
# Plot the solution
plotData = traj.sample(dt=0.05)
lw = 1.5
plot(plotData['t'],plotData['x'],linewidth=lw)
plot(plotData['t'],plotData['y'],linewidth=lw)
xlabel('t')
title('vanderpol')
legend(('x', 'y'),prop=FontProperties(size=14))
grid(True)
show()
