plt.legend() <spanclass="hljs-comment"># Adds a legend.</span>
plt.savefig(<path>) <spanclass="hljs-comment"># Saves the figure.</span>
plt.show() <spanclass="hljs-comment"># Displays the figure.</span>
plt.clf() <spanclass="hljs-comment"># Clears the figure.</span>
</code></pre></div>
<div><h2id="table"><ahref="#table"name="table">#</a>Table</h2><div><h4id="printsacsvfileasanasciitable">Prints a CSV file as an ASCII table:</h4><pre><codeclass="python language-python hljs"><spanclass="hljs-comment"># $ pip3 install tabulate</span>
@ -1995,7 +1995,8 @@ print(table)
height, width = screen.getmaxyx()
screen.erase()
<spanclass="hljs-keyword">for</span> y, filename <spanclass="hljs-keyword">in</span> enumerate(paths[first : first+height]):