Skip to content

Commit 3f6b26a

Browse files
committed
Fix the quick start example to use proper paths
1 parent b522916 commit 3f6b26a

7 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ For example, you can create a text visualization with a simple function call, in
5454
```python
5555
import matplotlib.pyplot as plt
5656
from multiplex import drawable
57-
plt.style.use(os.path.join(sys.path[0], '..', 'styles', "multiplex.style"))
57+
plt.style.use('styles/multiplex.style')
5858
viz = drawable.Drawable(plt.figure(figsize=(10, 2)))
5959
paragraph = """Anthony Lopes is a Portuguese professional footballer who plays for Olympique Lyonnais as a goalkeeper. He came through the youth ranks at Lyon, being called to the first team in 2011 and making his debut the following year."""
6060
style = { 'align': 'justify', 'fontfamily': 'serif', 'alpha': 0.9, 'lineheight': 1.25, 'lpad': 0.1, 'rpad': 0.1 }

docs/.doctrees/environment.pickle

0 Bytes
Binary file not shown.

docs/.doctrees/index.doctree

-72 Bytes
Binary file not shown.

docs/_sources/index.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ For example, you can create a text visualization with a simple function call, in
7676
7777
import matplotlib.pyplot as plt
7878
from multiplex import drawable
79-
plt.style.use(os.path.join(sys.path[0], '..', 'styles', "multiplex.style"))
79+
plt.style.use('styles/multiplex.style')
8080
viz = drawable.Drawable(plt.figure(figsize=(10, 2)))
8181
paragraph = """Anthony Lopes is a Portuguese professional footballer who plays for Olympique Lyonnais as a goalkeeper. He came through the youth ranks at Lyon, being called to the first team in 2011 and making his debut the following year."""
8282
style = { 'align': 'justify', 'fontfamily': 'serif', 'alpha': 0.9, 'lineheight': 1.25, 'lpad': 0.1, 'rpad': 0.1 }

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ <h2>Why Multiplex?<a class="headerlink" href="#why-multiplex" title="Permalink t
222222
9
223223
10</pre></div></td><td class="code"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">matplotlib.pyplot</span> <span class="kn">as</span> <span class="nn">plt</span>
224224
<span class="kn">from</span> <span class="nn">multiplex</span> <span class="kn">import</span> <span class="n">drawable</span>
225-
<span class="n">plt</span><span class="o">.</span><span class="n">style</span><span class="o">.</span><span class="n">use</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="s1">&#39;..&#39;</span><span class="p">,</span> <span class="s1">&#39;styles&#39;</span><span class="p">,</span> <span class="s2">&quot;multiplex.style&quot;</span><span class="p">))</span>
225+
<span class="n">plt</span><span class="o">.</span><span class="n">style</span><span class="o">.</span><span class="n">use</span><span class="p">(</span><span class="s1">&#39;styles/multiplex.style&#39;</span><span class="p">)</span>
226226
<span class="n">viz</span> <span class="o">=</span> <span class="n">drawable</span><span class="o">.</span><span class="n">Drawable</span><span class="p">(</span><span class="n">plt</span><span class="o">.</span><span class="n">figure</span><span class="p">(</span><span class="n">figsize</span><span class="o">=</span><span class="p">(</span><span class="mi">10</span><span class="p">,</span> <span class="mi">2</span><span class="p">)))</span>
227227
<span class="n">paragraph</span> <span class="o">=</span> <span class="s2">&quot;&quot;&quot;Anthony Lopes is a Portuguese professional footballer who plays for Olympique Lyonnais as a goalkeeper. He came through the youth ranks at Lyon, being called to the first team in 2011 and making his debut the following year.&quot;&quot;&quot;</span>
228228
<span class="n">style</span> <span class="o">=</span> <span class="p">{</span> <span class="s1">&#39;align&#39;</span><span class="p">:</span> <span class="s1">&#39;justify&#39;</span><span class="p">,</span> <span class="s1">&#39;fontfamily&#39;</span><span class="p">:</span> <span class="s1">&#39;serif&#39;</span><span class="p">,</span> <span class="s1">&#39;alpha&#39;</span><span class="p">:</span> <span class="mf">0.9</span><span class="p">,</span> <span class="s1">&#39;lineheight&#39;</span><span class="p">:</span> <span class="mf">1.25</span><span class="p">,</span> <span class="s1">&#39;lpad&#39;</span><span class="p">:</span> <span class="mf">0.1</span><span class="p">,</span> <span class="s1">&#39;rpad&#39;</span><span class="p">:</span> <span class="mf">0.1</span> <span class="p">}</span>

docs/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docsource/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ For example, you can create a text visualization with a simple function call, in
7676
7777
import matplotlib.pyplot as plt
7878
from multiplex import drawable
79-
plt.style.use(os.path.join(sys.path[0], '..', 'styles', "multiplex.style"))
79+
plt.style.use('styles/multiplex.style')
8080
viz = drawable.Drawable(plt.figure(figsize=(10, 2)))
8181
paragraph = """Anthony Lopes is a Portuguese professional footballer who plays for Olympique Lyonnais as a goalkeeper. He came through the youth ranks at Lyon, being called to the first team in 2011 and making his debut the following year."""
8282
style = { 'align': 'justify', 'fontfamily': 'serif', 'alpha': 0.9, 'lineheight': 1.25, 'lpad': 0.1, 'rpad': 0.1 }

0 commit comments

Comments
 (0)