Skip to content

Commit 3950dff

Browse files
committed
Add an example image to the slope graph documentation
1 parent 37b7f74 commit 3950dff

7 files changed

Lines changed: 5 additions & 1 deletion

File tree

docs/.doctrees/environment.pickle

68 Bytes
Binary file not shown.

docs/.doctrees/slope.doctree

235 Bytes
Binary file not shown.

docs/_images/6-slope.png

284 KB
Loading

docs/sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?xml version='1.0' encoding='utf-8'?>
2-
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://nicholasmamo.github.io/multiplex-plot/index.html</loc></url><url><loc>https://nicholasmamo.github.io/multiplex-plot/genindex.html</loc></url><url><loc>https://nicholasmamo.github.io/multiplex-plot/py-modindex.html</loc></url><url><loc>https://nicholasmamo.github.io/multiplex-plot/search.html</loc></url></urlset>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://nicholasmamo.github.io/multiplex-plot/drawable.html</loc></url><url><loc>https://nicholasmamo.github.io/multiplex-plot/index.html</loc></url><url><loc>https://nicholasmamo.github.io/multiplex-plot/slope.html</loc></url><url><loc>https://nicholasmamo.github.io/multiplex-plot/genindex.html</loc></url><url><loc>https://nicholasmamo.github.io/multiplex-plot/py-modindex.html</loc></url><url><loc>https://nicholasmamo.github.io/multiplex-plot/search.html</loc></url></urlset>

docs/slope.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ <h1>6. Slope Graph<a class="headerlink" href="#slope-graph" title="Permalink to
190190
<li>Over a time period.</li>
191191
</ul>
192192
<p>Slope graphs are not commonly included in visualization packages, but they can be great tools to tell a story.</p>
193+
<img alt="_images/6-slope.png" class="example inline" src="_images/6-slope.png" />
193194
<p>To draw a slope graph, create a <a class="reference internal" href="drawable.html#drawable.Drawable" title="drawable.Drawable"><code class="xref py py-class docutils literal notranslate"><span class="pre">Drawable</span></code></a> class and call the <a class="reference internal" href="drawable.html#drawable.Drawable.draw_slope" title="drawable.Drawable.draw_slope"><code class="xref py py-func docutils literal notranslate"><span class="pre">draw_slope()</span></code></a> function:</p>
194195
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">matplotlib.pyplot</span> <span class="k">as</span> <span class="nn">plt</span>
195196
<span class="kn">from</span> <span class="nn">multiplex</span> <span class="kn">import</span> <span class="n">drawable</span>
78 Bytes
Binary file not shown.

multiplex/slope/slope.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
77
Slope graphs are not commonly included in visualization packages, but they can be great tools to tell a story.
88
9+
.. image:: ../examples/exports/6-slope.png
10+
:class: example inline
11+
912
To draw a slope graph, create a :class:`~drawable.Drawable` class and call the :func:`~drawable.Drawable.draw_slope` function:
1013
1114
.. code-block:: python

0 commit comments

Comments
 (0)