Skip to content

Commit

Permalink
deploy: e681ad8
Browse files Browse the repository at this point in the history
  • Loading branch information
imtambovtcev committed Aug 11, 2024
1 parent db3ff98 commit 53f3ce3
Show file tree
Hide file tree
Showing 38 changed files with 1,292 additions and 334 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 06bfe2c92fb8d706f017a4f26879c555
config: 2af926c2faf53deca9445256da1b1119
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file modified .doctrees/source/hari_plotter.cluster.doctree
Binary file not shown.
Binary file modified .doctrees/source/hari_plotter.color_scheme.doctree
Binary file not shown.
Binary file modified .doctrees/source/hari_plotter.distributions.doctree
Binary file not shown.
Binary file modified .doctrees/source/hari_plotter.dynamics.doctree
Binary file not shown.
Binary file modified .doctrees/source/hari_plotter.graph.doctree
Binary file not shown.
Binary file modified .doctrees/source/hari_plotter.group.doctree
Binary file not shown.
Binary file modified .doctrees/source/hari_plotter.interface.doctree
Binary file not shown.
Binary file modified .doctrees/source/hari_plotter.lazy_graph.doctree
Binary file not shown.
Binary file modified .doctrees/source/hari_plotter.model.doctree
Binary file not shown.
Binary file modified .doctrees/source/hari_plotter.node_gatherer.doctree
Binary file not shown.
Binary file modified .doctrees/source/hari_plotter.parameters.doctree
Binary file not shown.
Binary file modified .doctrees/source/hari_plotter.plot.doctree
Binary file not shown.
Binary file modified .doctrees/source/hari_plotter.plotter.doctree
Binary file not shown.
Binary file modified .doctrees/source/hari_plotter.simulation.doctree
Binary file not shown.
480 changes: 373 additions & 107 deletions _modules/hari_plotter/cluster.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions _modules/hari_plotter/color_scheme.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ <h1>Source code for hari_plotter.color_scheme</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">collections</span> <span class="kn">import</span> <span class="n">defaultdict</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Dict</span><span class="p">,</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">Set</span><span class="p">,</span> <span class="n">Tuple</span><span class="p">,</span> <span class="n">Union</span>

<span class="kn">import</span> <span class="nn">matplotlib</span> <span class="k">as</span> <span class="nn">mpl</span>
<span class="kn">import</span> <span class="nn">matplotlib.cm</span> <span class="k">as</span> <span class="nn">cm</span>
<span class="kn">import</span> <span class="nn">matplotlib.colors</span> <span class="k">as</span> <span class="nn">colors</span>
<span class="kn">import</span> <span class="nn">matplotlib.pyplot</span> <span class="k">as</span> <span class="nn">plt</span>
Expand Down Expand Up @@ -155,7 +156,7 @@ <h1>Source code for hari_plotter.color_scheme</h1><div class="highlight"><pre>
<span class="c1"># Colormap doesn&#39;t exist, create a new one</span>
<span class="n">colors</span> <span class="o">=</span> <span class="p">[</span><span class="n">anything_to_rgba</span><span class="p">(</span><span class="n">color</span><span class="p">)</span> <span class="k">for</span> <span class="n">color</span> <span class="ow">in</span> <span class="n">colormap</span><span class="p">[</span><span class="s1">&#39;Colors&#39;</span><span class="p">]]</span>
<span class="n">new_colormap</span> <span class="o">=</span> <span class="n">LinearSegmentedColormap</span><span class="o">.</span><span class="n">from_list</span><span class="p">(</span><span class="n">colormap_name</span><span class="p">,</span> <span class="n">colors</span><span class="p">)</span>
<span class="n">plt</span><span class="o">.</span><span class="n">register_cmap</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="n">colormap_name</span><span class="p">,</span> <span class="n">cmap</span><span class="o">=</span><span class="n">new_colormap</span><span class="p">)</span>
<span class="n">mpl</span><span class="o">.</span><span class="n">colormaps</span><span class="o">.</span><span class="n">register</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="n">colormap_name</span><span class="p">,</span> <span class="n">cmap</span><span class="o">=</span><span class="n">new_colormap</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Colormap &#39;</span><span class="si">{</span><span class="n">colormap_name</span><span class="si">}</span><span class="s2">&#39; created and registered.&quot;</span><span class="p">)</span>
<span class="k">return</span> <span class="n">colormap_name</span><span class="p">,</span> <span class="n">new_colormap</span></div>

Expand All @@ -172,7 +173,7 @@ <h1>Source code for hari_plotter.color_scheme</h1><div class="highlight"><pre>

<span class="n">available_colormaps</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">colormaps</span><span class="p">()</span>
<span class="n">available_markers</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">Line2D</span><span class="o">.</span><span class="n">markers</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span>
<span class="n">default_markers</span> <span class="o">=</span> <span class="p">(</span><span class="s1">&#39;o&#39;</span><span class="p">,</span> <span class="s1">&#39;X&#39;</span><span class="p">,</span> <span class="s1">&#39;&lt;&#39;</span><span class="p">,</span> <span class="s1">&#39;&gt;&#39;</span><span class="p">,</span> <span class="s1">&#39;^&#39;</span><span class="p">,</span> <span class="s1">&#39;v&#39;</span><span class="p">,</span> <span class="s1">&#39;4&#39;</span><span class="p">,</span> <span class="s1">&#39;5&#39;</span><span class="p">,</span> <span class="s1">&#39;6&#39;</span><span class="p">,</span> <span class="s1">&#39;7&#39;</span><span class="p">,</span> <span class="s1">&#39;*&#39;</span><span class="p">,</span> <span class="s1">&#39;+&#39;</span><span class="p">,</span>
<span class="n">default_markers</span> <span class="o">=</span> <span class="p">(</span><span class="s1">&#39;o&#39;</span><span class="p">,</span> <span class="s1">&#39;X&#39;</span><span class="p">,</span> <span class="s1">&#39;&lt;&#39;</span><span class="p">,</span> <span class="s1">&#39;&gt;&#39;</span><span class="p">,</span> <span class="s1">&#39;^&#39;</span><span class="p">,</span> <span class="s1">&#39;v&#39;</span><span class="p">,</span> <span class="s1">&#39;4&#39;</span><span class="p">,</span> <span class="s1">&#39;*&#39;</span><span class="p">,</span> <span class="s1">&#39;+&#39;</span><span class="p">,</span>
<span class="s1">&#39;D&#39;</span><span class="p">,</span> <span class="s1">&#39;H&#39;</span><span class="p">,</span> <span class="s1">&#39;P&#39;</span><span class="p">,</span> <span class="s1">&#39;d&#39;</span><span class="p">,</span> <span class="s1">&#39;h&#39;</span><span class="p">,</span> <span class="s1">&#39;p&#39;</span><span class="p">,</span> <span class="s1">&#39;s&#39;</span><span class="p">,</span> <span class="s1">&#39;_&#39;</span><span class="p">,</span> <span class="s1">&#39;|&#39;</span><span class="p">,</span> <span class="s1">&#39;,&#39;</span><span class="p">,</span> <span class="s1">&#39;.&#39;</span><span class="p">,)</span>
<span class="n">default_scatter_marker</span> <span class="o">=</span> <span class="n">default_markers</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span>
<span class="n">default_none_marker</span> <span class="o">=</span> <span class="s1">&#39;x&#39;</span>
Expand Down
Loading

0 comments on commit 53f3ce3

Please sign in to comment.