{"id":349,"date":"2013-04-21T20:13:58","date_gmt":"2013-04-22T01:13:58","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=349"},"modified":"2013-04-21T20:13:58","modified_gmt":"2013-04-22T01:13:58","slug":"generating-slope-fields-direction-fields-with-python-and-gnuplot","status":"publish","type":"post","link":"http:\/\/www.compdigitec.com\/labs\/2013\/04\/21\/generating-slope-fields-direction-fields-with-python-and-gnuplot\/","title":{"rendered":"Generating slope fields \/ direction fields with python and gnuplot"},"content":{"rendered":"<div id=\"attachment_350\" style=\"width: 490px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.compdigitec.com\/labs\/wp-content\/uploads\/2013\/04\/slope_field_output.png\"><img aria-describedby=\"caption-attachment-350\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-350 \" alt=\"Slope field of (dy\/dx) = x\/y\" src=\"http:\/\/www.compdigitec.com\/labs\/wp-content\/uploads\/2013\/04\/slope_field_output.png\" width=\"480\" height=\"360\" \/><\/a><p id=\"caption-attachment-350\" class=\"wp-caption-text\">Slope field of (dy\/dx) = x\/y<\/p><\/div>\n<p><a href=\"http:\/\/www.compdigitec.com\/labs\/files\/slopefields.py\">slopefields.py<\/a> (1.9 KB)<\/p>\n<p>Now you can generate your own slope field \/ vector field \/ direction field of a differential equation using open source python and gnuplot!<\/p>\n<ul>\n<li>Set function to draw field of under dy_dx().<\/li>\n<li>Set window parameters (x\/y minimums and maximums, intervals, and length of field arrows).<\/li>\n<li>Run with\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">python slopefields.py<\/pre>\n<p>to generate the slope field.<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>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.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[828,827,826],"_links":{"self":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/349"}],"collection":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=349"}],"version-history":[{"count":0,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/349\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=349"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}