Compdigitec Labs

Archive for April, 2013

Generating slope fields / direction fields with python and gnuplot

Sunday, April 21st, 2013

slopefields.py (1.9 KB) Now you can generate your own slope field / vector field / direction field of a differential equation using open source python and gnuplot! Set function to draw field of under dy_dx(). Set window parameters (x/y minimums and maximums, intervals, and length of field arrows). Run with to generate the slope field.