<spanid="sphx-glr-gallery-mplot3d-text3d-py"></span><h1>Text annotations in 3D<aclass="headerlink" href="#text-annotations-in-3d" title="Permalink to this headline">¶</a></h1>
<p>Demonstrates the placement of text annotations on a 3D plot.</p>
<p>Functionality shown:</p>
<blockquote>
<div><ulclass="simple">
<li>Using the text function with three types of ‘zdir’ values: None, an axis
name (ex. ‘x’), or a direction tuple (ex. (1, 1, 0)).</li>
<li>Using the text function with the color keyword.</li>
<li>Using the text2D function to place text on a fixed position on the ax
<spanclass="n">fig</span><spanclass="o">=</span><ahref="../../api/_as_gen/matplotlib.pyplot.figure.html#matplotlib.pyplot.figure" title="View documentation for matplotlib.pyplot.figure"><spanclass="n">plt</span><spanclass="o">.</span><spanclass="n">figure</span></a><spanclass="p">()</span>
<ahref="../../api/_as_gen/matplotlib.pyplot.show.html#matplotlib.pyplot.show" title="View documentation for matplotlib.pyplot.show"><spanclass="n">plt</span><spanclass="o">.</span><spanclass="n">show</span></a><spanclass="p">()</span>