<divid="unreleased-message"> You are reading an old version of the documentation (v3.3.4). For the latest version see <ahref="https://matplotlib.org/stable/gallery/units/artist_tests.html">https://matplotlib.org/stable/gallery/units/artist_tests.html</a></div>
<spanid="sphx-glr-gallery-units-artist-tests-py"></span><h1>Artist tests<aclass="headerlink" href="#artist-tests" title="Permalink to this headline">¶</a></h1>
<p>Test unit support with each of the Matplotlib primitive artist types.</p>
<p>The axis handles unit conversions and the artists keep a pointer to their axis
parent. You must initialize the artists with the axis instance if you want to
use them with unit data, or else they will not know how to convert the units