Skip to content

Commit

Permalink
Deploying to gh-pages from @ 1419cf5 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGhenis committed Oct 24, 2024
1 parent 37d92d8 commit 5b04f61
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
22 changes: 11 additions & 11 deletions charts.html
Original file line number Diff line number Diff line change
Expand Up @@ -461,18 +461,18 @@ <h2>Setup<a class="headerlink" href="#setup" title="Link to this heading">#</a><
<span class="n">Cell</span> <span class="n">In</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span> <span class="n">line</span> <span class="mi">1</span>
<span class="ne">----&gt; </span><span class="mi">1</span> <span class="n">mdf</span><span class="o">.</span><span class="n">set_plot_style</span><span class="p">()</span>

<span class="nn">File ~/work/microdf/microdf/microdf/style.py:24,</span> in <span class="ni">set_plot_style</span><span class="nt">(dpi)</span>
<span class="g g-Whitespace"> </span><span class="mi">20</span> <span class="n">sns</span><span class="o">.</span><span class="n">set_style</span><span class="p">(</span><span class="s2">&quot;white&quot;</span><span class="p">)</span>
<span class="g g-Whitespace"> </span><span class="mi">22</span> <span class="c1"># Set up Roboto. Must be downloaded in the current directory.</span>
<span class="g g-Whitespace"> </span><span class="mi">23</span> <span class="c1"># See https://stackoverflow.com/a/51844978/1840471.</span>
<span class="ne">---&gt; </span><span class="mi">24</span> <span class="n">fm</span><span class="o">.</span><span class="n">fontManager</span><span class="o">.</span><span class="n">ttflist</span> <span class="o">+=</span> <span class="n">fm</span><span class="o">.</span><span class="n">createFontList</span><span class="p">([</span><span class="s2">&quot;Roboto-Regular.ttf&quot;</span><span class="p">])</span>
<span class="g g-Whitespace"> </span><span class="mi">26</span> <span class="n">STYLE</span> <span class="o">=</span> <span class="p">{</span>
<span class="g g-Whitespace"> </span><span class="mi">27</span> <span class="s2">&quot;savefig.dpi&quot;</span><span class="p">:</span> <span class="n">dpi</span><span class="p">,</span>
<span class="g g-Whitespace"> </span><span class="mi">28</span> <span class="s2">&quot;figure.dpi&quot;</span><span class="p">:</span> <span class="n">dpi</span><span class="p">,</span>
<span class="nn">File ~/work/microdf/microdf/microdf/style.py:29,</span> in <span class="ni">set_plot_style</span><span class="nt">(dpi)</span>
<span class="g g-Whitespace"> </span><span class="mi">25</span> <span class="n">sns</span><span class="o">.</span><span class="n">set_style</span><span class="p">(</span><span class="s2">&quot;white&quot;</span><span class="p">)</span>
<span class="g g-Whitespace"> </span><span class="mi">27</span> <span class="c1"># Set up Roboto. Must be downloaded in the current directory.</span>
<span class="g g-Whitespace"> </span><span class="mi">28</span> <span class="c1"># See https://stackoverflow.com/a/51844978/1840471.</span>
<span class="ne">---&gt; </span><span class="mi">29</span> <span class="n">fm</span><span class="o">.</span><span class="n">fontManager</span><span class="o">.</span><span class="n">ttflist</span> <span class="o">+=</span> <span class="n">fm</span><span class="o">.</span><span class="n">createFontList</span><span class="p">([</span><span class="s2">&quot;Roboto-Regular.ttf&quot;</span><span class="p">])</span>
<span class="g g-Whitespace"> </span><span class="mi">31</span> <span class="n">STYLE</span> <span class="o">=</span> <span class="p">{</span>
<span class="g g-Whitespace"> </span><span class="mi">32</span> <span class="s2">&quot;savefig.dpi&quot;</span><span class="p">:</span> <span class="n">dpi</span><span class="p">,</span>
<span class="g g-Whitespace"> </span><span class="mi">33</span> <span class="s2">&quot;figure.dpi&quot;</span><span class="p">:</span> <span class="n">dpi</span><span class="p">,</span>
<span class="p">(</span><span class="o">...</span><span class="p">)</span>
<span class="g g-Whitespace"> </span><span class="mi">46</span> <span class="s2">&quot;axes.spines.bottom&quot;</span><span class="p">:</span> <span class="kc">False</span><span class="p">,</span>
<span class="g g-Whitespace"> </span><span class="mi">47</span> <span class="p">}</span>
<span class="g g-Whitespace"> </span><span class="mi">49</span> <span class="n">mpl</span><span class="o">.</span><span class="n">rcParams</span><span class="o">.</span><span class="n">update</span><span class="p">(</span><span class="n">STYLE</span><span class="p">)</span>
<span class="g g-Whitespace"> </span><span class="mi">51</span> <span class="s2">&quot;axes.spines.bottom&quot;</span><span class="p">:</span> <span class="kc">False</span><span class="p">,</span>
<span class="g g-Whitespace"> </span><span class="mi">52</span> <span class="p">}</span>
<span class="g g-Whitespace"> </span><span class="mi">54</span> <span class="n">mpl</span><span class="o">.</span><span class="n">rcParams</span><span class="o">.</span><span class="n">update</span><span class="p">(</span><span class="n">STYLE</span><span class="p">)</span>

<span class="ne">AttributeError</span>: module &#39;matplotlib.font_manager&#39; has no attribute &#39;createFontList&#39;
</pre></div>
Expand Down
22 changes: 11 additions & 11 deletions reports/charts.err.log
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ mdf.set_plot_style()
Cell In[2], line 1
----> 1 mdf.set_plot_style()

File ~/work/microdf/microdf/microdf/style.py:24, in set_plot_style(dpi)
 20 sns.set_style("white")
 22 # Set up Roboto. Must be downloaded in the current directory.
 23 # See https://stackoverflow.com/a/51844978/1840471.
---> 24 fm.fontManager.ttflist += fm.createFontList(["Roboto-Regular.ttf"])
 26 STYLE = {
 27 "savefig.dpi": dpi,
 28 "figure.dpi": dpi,
File ~/work/microdf/microdf/microdf/style.py:29, in set_plot_style(dpi)
 25 sns.set_style("white")
 27 # Set up Roboto. Must be downloaded in the current directory.
 28 # See https://stackoverflow.com/a/51844978/1840471.
---> 29 fm.fontManager.ttflist += fm.createFontList(["Roboto-Regular.ttf"])
 31 STYLE = {
 32 "savefig.dpi": dpi,
 33 "figure.dpi": dpi,
 (...)
 46 "axes.spines.bottom": False,
 47 }
 49 mpl.rcParams.update(STYLE)
 51 "axes.spines.bottom": False,
 52 }
 54 mpl.rcParams.update(STYLE)

AttributeError: module 'matplotlib.font_manager' has no attribute 'createFontList'

Loading

0 comments on commit 5b04f61

Please sign in to comment.