snipt

Ctrl+h for KB shortcuts

Python

Plot format defaults in Matplotlib

1
2
3
4
rc('font', family='serif')
rc('font', serif='Times New Roman')
rc('font', size=20)
rc('lines', linewidth=2)
https://snipt.net/embed/7cd75e7b22bd620b5f76c2768ad063a0/
/raw/7cd75e7b22bd620b5f76c2768ad063a0/
7cd75e7b22bd620b5f76c2768ad063a0
python
Python
4
2019-07-16T11:12:19
True
False
False
Nov 20, 2012 at 01:57 PM
/api/public/snipt/50528/
plot-format-defaults-in-matplotlib
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="n">rc</span><span class="p">(</span><span class="s1">&#39;font&#39;</span><span class="p">,</span> <span class="n">family</span><span class="o">=</span><span class="s1">&#39;serif&#39;</span><span class="p">)</span> </span><span id="L-2"><a name="L-2"></a><span class="n">rc</span><span class="p">(</span><span class="s1">&#39;font&#39;</span><span class="p">,</span> <span class="n">serif</span><span class="o">=</span><span class="s1">&#39;Times New Roman&#39;</span><span class="p">)</span> </span><span id="L-3"><a name="L-3"></a><span class="n">rc</span><span class="p">(</span><span class="s1">&#39;font&#39;</span><span class="p">,</span> <span class="n">size</span><span class="o">=</span><span class="mi">20</span><span class="p">)</span> </span><span id="L-4"><a name="L-4"></a><span class="n">rc</span><span class="p">(</span><span class="s1">&#39;lines&#39;</span><span class="p">,</span> <span class="n">linewidth</span><span class="o">=</span><span class="mi">2</span><span class="p">)</span> </span></pre></div> </td></tr></table>
"plot format default", Matplotlib, Python, default, format, plot