Popular Python recipes tagged "meta:requires=visual"http://code.activestate.com/recipes/langs/python/tags/meta:requires=visual/2011-05-26T10:57:39-07:00ActiveState Code Recipes2D slice of 4D Mandelbrot Fractal and Map it in 3D (Python)
2011-05-26T10:57:39-07:00Derek Harrisonhttp://code.activestate.com/recipes/users/4178123/http://code.activestate.com/recipes/577723-2d-slice-of-4d-mandelbrot-fractal-and-map-it-in-3d/
<p style="color: grey">
Python
recipe 577723
by <a href="/recipes/users/4178123/">Derek Harrison</a>
(<a href="/recipes/tags/2d/">2d</a>, <a href="/recipes/tags/3d/">3d</a>, <a href="/recipes/tags/4d/">4d</a>, <a href="/recipes/tags/symion/">symion</a>).
</p>
<p>This is a modification of code posted at <a href="http://code.activestate.com/recipes/577715/" rel="nofollow">http://code.activestate.com/recipes/577715/</a> (r3)</p>
<p>The original code produces a png image using the PIL module.
It generates a Random 2D Slice of a 4D Mandelbrot Fractal.</p>
<p>This extends the program into 3D with Visual Python 5.4, running under Python 2.7.1</p>
<p>Changing vp_flag from 0 to 1 will restore program to original functionality.
The program is interactive with keys q,w,e,r and x used to control visual points object.</p>
Stripchart Plotter (Python)
2005-05-06T06:04:05-07:00Flávio Codeço Coelhohttp://code.activestate.com/recipes/users/2270289/http://code.activestate.com/recipes/413432-stripchart-plotter/
<p style="color: grey">
Python
recipe 413432
by <a href="/recipes/users/2270289/">Flávio Codeço Coelho</a>
(<a href="/recipes/tags/graphics/">graphics</a>).
</p>
<p>OpenGL Stripchart plotter for a user defined number of channels.</p>
Vpython example (Python)
2004-12-29T20:08:26-08:00Matthew Sherbornehttp://code.activestate.com/recipes/users/2235063/http://code.activestate.com/recipes/361168-vpython-example/
<p style="color: grey">
Python
recipe 361168
by <a href="/recipes/users/2235063/">Matthew Sherborne</a>
(<a href="/recipes/tags/programs/">programs</a>).
</p>
<p>An example done to solve this problem:</p>
<p><a href="http://acm.uva.es/p/v1/101.html" rel="nofollow">http://acm.uva.es/p/v1/101.html</a></p>
<p>Animation by vpython (visual python): <a href="http://vpython.org/" rel="nofollow">http://vpython.org/</a></p>
<p>Provides some 3d coolness for new pythonists. Shows some stack usage. Probably should be shorter.</p>
<p>In the __main__ statement at the bottom, replace test2() with parse(), then type something like this on each line:
10
move 5 onto 1
pile 1 onto 3
move 6 over 2
pile 3 over 2
etc.</p>
<p>See the problem link at the top for full instructions...</p>