.. _book_fig_chapter2_fig_kdtree_example: KD Tree Example --------------- Figure 2.4. This example creates a simple KD-tree partition of a two-dimensional parameter space, and plots a visualization of the result. .. image:: ../images/chapter2/fig_kdtree_example_1.png :scale: 100 :align: center .. raw:: html
**Code output:** .. raw:: html
.. literalinclude:: fig_kdtree_example.txt .. raw:: html
**Python source code:** .. raw:: html
.. literalinclude:: fig_kdtree_example.py :lines: 9- .. raw:: html
:download:`[download source: fig_kdtree_example.py] ` .. raw:: html