Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
erdogant committed Apr 28, 2023
1 parent ae9be30 commit 7e9fec2
Show file tree
Hide file tree
Showing 77 changed files with 652 additions and 68 deletions.
Binary file modified docs/figs/biplot_only_directions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/custom_example_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/iris_density.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/marker_example_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figs/wine_arrow_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figs/wine_arrow_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figs/wine_arrow_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figs/wine_arrow_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figs/wine_arrow_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figs/wine_arrow_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figs/wine_arrow_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figs/wine_arrow_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figs/wine_arrow_8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figs/wine_arrow_9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/wine_biplot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figs/wine_biplot3d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/wine_biplot_with_outliers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/wine_scatter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/wine_scatter_PC13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/wine_scatter_density.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figs/wine_scatter_gradient.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/wine_scatter_hotel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/figs/wine_scatter_spe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/pages/doctrees/Plots.doctree
Binary file not shown.
Binary file added docs/pages/doctrees/arrows.doctree
Binary file not shown.
Binary file modified docs/pages/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/pages/doctrees/index.doctree
Binary file not shown.
Binary file modified docs/pages/doctrees/pca.pca.doctree
Binary file not shown.
1 change: 1 addition & 0 deletions docs/pages/html/Abstract.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
<li class="toctree-l1"><a class="reference internal" href="Plots.html#control-color-marker-size-per-sample">Control color/marker/size per sample</a></li>
<li class="toctree-l1"><a class="reference internal" href="Plots.html#d-plots">3D plots</a></li>
<li class="toctree-l1"><a class="reference internal" href="Plots.html#toggle-visible-status">Toggle visible status</a></li>
<li class="toctree-l1"><a class="reference internal" href="arrows.html">Control Arrows</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Examples</span></p>
<ul>
Expand Down
1 change: 1 addition & 0 deletions docs/pages/html/Additional_Information.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
<li class="toctree-l1"><a class="reference internal" href="Plots.html#control-color-marker-size-per-sample">Control color/marker/size per sample</a></li>
<li class="toctree-l1"><a class="reference internal" href="Plots.html#d-plots">3D plots</a></li>
<li class="toctree-l1"><a class="reference internal" href="Plots.html#toggle-visible-status">Toggle visible status</a></li>
<li class="toctree-l1"><a class="reference internal" href="arrows.html">Control Arrows</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Examples</span></p>
<ul>
Expand Down
1 change: 1 addition & 0 deletions docs/pages/html/Algorithm.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
<li class="toctree-l1"><a class="reference internal" href="Plots.html#control-color-marker-size-per-sample">Control color/marker/size per sample</a></li>
<li class="toctree-l1"><a class="reference internal" href="Plots.html#d-plots">3D plots</a></li>
<li class="toctree-l1"><a class="reference internal" href="Plots.html#toggle-visible-status">Toggle visible status</a></li>
<li class="toctree-l1"><a class="reference internal" href="arrows.html">Control Arrows</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Examples</span></p>
<ul>
Expand Down
1 change: 1 addition & 0 deletions docs/pages/html/Coding quality.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
<li class="toctree-l1"><a class="reference internal" href="Plots.html#control-color-marker-size-per-sample">Control color/marker/size per sample</a></li>
<li class="toctree-l1"><a class="reference internal" href="Plots.html#d-plots">3D plots</a></li>
<li class="toctree-l1"><a class="reference internal" href="Plots.html#toggle-visible-status">Toggle visible status</a></li>
<li class="toctree-l1"><a class="reference internal" href="arrows.html">Control Arrows</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Examples</span></p>
<ul>
Expand Down
1 change: 1 addition & 0 deletions docs/pages/html/Documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
<li class="toctree-l1"><a class="reference internal" href="Plots.html#control-color-marker-size-per-sample">Control color/marker/size per sample</a></li>
<li class="toctree-l1"><a class="reference internal" href="Plots.html#d-plots">3D plots</a></li>
<li class="toctree-l1"><a class="reference internal" href="Plots.html#toggle-visible-status">Toggle visible status</a></li>
<li class="toctree-l1"><a class="reference internal" href="arrows.html">Control Arrows</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Examples</span></p>
<ul>
Expand Down
5 changes: 3 additions & 2 deletions docs/pages/html/Examples.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Notebook" href="notebook.html" />
<link rel="prev" title="Load dataset" href="Plots.html" />
<link rel="prev" title="Control Arrows" href="arrows.html" />
</head>

<body class="wy-body-for-nav">
Expand Down Expand Up @@ -83,6 +83,7 @@
<li class="toctree-l1"><a class="reference internal" href="Plots.html#control-color-marker-size-per-sample">Control color/marker/size per sample</a></li>
<li class="toctree-l1"><a class="reference internal" href="Plots.html#d-plots">3D plots</a></li>
<li class="toctree-l1"><a class="reference internal" href="Plots.html#toggle-visible-status">Toggle visible status</a></li>
<li class="toctree-l1"><a class="reference internal" href="arrows.html">Control Arrows</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Examples</span></p>
<ul class="current">
Expand Down Expand Up @@ -557,7 +558,7 @@ <h1>Colors in plots<a class="headerlink" href="#colors-in-plots" title="Permalin
</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="Plots.html" class="btn btn-neutral float-left" title="Load dataset" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="arrows.html" class="btn btn-neutral float-left" title="Control Arrows" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="notebook.html" class="btn btn-neutral float-right" title="Notebook" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>

Expand Down
1 change: 1 addition & 0 deletions docs/pages/html/Installation.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
<li class="toctree-l1"><a class="reference internal" href="Plots.html#control-color-marker-size-per-sample">Control color/marker/size per sample</a></li>
<li class="toctree-l1"><a class="reference internal" href="Plots.html#d-plots">3D plots</a></li>
<li class="toctree-l1"><a class="reference internal" href="Plots.html#toggle-visible-status">Toggle visible status</a></li>
<li class="toctree-l1"><a class="reference internal" href="arrows.html">Control Arrows</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Examples</span></p>
<ul>
Expand Down
1 change: 1 addition & 0 deletions docs/pages/html/Outlier detection.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
<li class="toctree-l1"><a class="reference internal" href="Plots.html#control-color-marker-size-per-sample">Control color/marker/size per sample</a></li>
<li class="toctree-l1"><a class="reference internal" href="Plots.html#d-plots">3D plots</a></li>
<li class="toctree-l1"><a class="reference internal" href="Plots.html#toggle-visible-status">Toggle visible status</a></li>
<li class="toctree-l1"><a class="reference internal" href="arrows.html">Control Arrows</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Examples</span></p>
<ul>
Expand Down
28 changes: 17 additions & 11 deletions docs/pages/html/Plots.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<script src="_static/js/theme.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Quickstart" href="Examples.html" />
<link rel="next" title="Control Arrows" href="arrows.html" />
<link rel="prev" title="Hotelling T2" href="Outlier%20detection.html" />
</head>

Expand Down Expand Up @@ -83,6 +83,7 @@
<li class="toctree-l1"><a class="reference internal" href="#control-color-marker-size-per-sample">Control color/marker/size per sample</a></li>
<li class="toctree-l1"><a class="reference internal" href="#d-plots">3D plots</a></li>
<li class="toctree-l1"><a class="reference internal" href="#toggle-visible-status">Toggle visible status</a></li>
<li class="toctree-l1"><a class="reference internal" href="arrows.html">Control Arrows</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Examples</span></p>
<ul>
Expand Down Expand Up @@ -169,14 +170,17 @@ <h1>Scatter plot<a class="headerlink" href="#scatter-plot" title="Permalink to t
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="c1"># Make scatterplot</span>
<span class="n">model</span><span class="o">.</span><span class="n">scatter</span><span class="p">()</span>

<span class="c1"># Make scatterplot</span>
<span class="n">model</span><span class="o">.</span><span class="n">scatter</span><span class="p">(</span><span class="n">density</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>

<span class="c1"># Gradient over the samples. High dense areas will be more colourful.</span>
<span class="n">model</span><span class="o">.</span><span class="n">scatter</span><span class="p">(</span><span class="n">gradient</span><span class="o">=</span><span class="s1">&#39;#FFFFFF&#39;</span><span class="p">)</span>
<span class="n">model</span><span class="o">.</span><span class="n">scatter</span><span class="p">(</span><span class="n">gradient</span><span class="o">=</span><span class="s1">&#39;#FFFFFF&#39;</span><span class="p">,</span> <span class="n">edgecolor</span><span class="o">=</span><span class="kc">None</span><span class="p">)</span>

<span class="c1"># Include the outlier detection</span>
<span class="n">model</span><span class="o">.</span><span class="n">scatter</span><span class="p">(</span><span class="n">SPE</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<span class="n">model</span><span class="o">.</span><span class="n">scatter</span><span class="p">(</span><span class="n">SPE</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">density</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>

<span class="c1"># Include the outlier detection</span>
<span class="n">model</span><span class="o">.</span><span class="n">scatter</span><span class="p">(</span><span class="n">HT2</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<span class="n">model</span><span class="o">.</span><span class="n">scatter</span><span class="p">(</span><span class="n">HT2</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">density</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>

<span class="c1"># Look at different PCs: 1st PC=1 vs PC=3</span>
<span class="n">model</span><span class="o">.</span><span class="n">scatter</span><span class="p">(</span><span class="n">PC</span><span class="o">=</span><span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">2</span><span class="p">])</span>
Expand All @@ -185,15 +189,16 @@ <h1>Scatter plot<a class="headerlink" href="#scatter-plot" title="Permalink to t
<table class="docutils align-center" id="id1">
<caption><span class="caption-text">Scatterplots</span><a class="headerlink" href="#id1" title="Permalink to this table"></a></caption>
<tbody>
<tr class="row-odd"><td><p><img alt="figP1" src="_images/wine_scatter.png" /></p></td>
<tr class="row-odd"><td colspan="2"><p><img alt="figP1" src="_images/wine_scatter.png" /></p></td>
</tr>
<tr class="row-even"><td><p><img alt="figP7" src="_images/wine_scatter_density.png" /></p></td>
<tr class="row-even"><td><p><img alt="figP1d" src="_images/wine_scatter_density.png" /></p></td>
<td><p><img alt="figP1g" src="_images/wine_scatter_gradient.png" /></p></td>
</tr>
<tr class="row-odd"><td><p><img alt="figP2" src="_images/wine_scatter_spe.png" /></p></td>
<td><p><img alt="figP3" src="_images/wine_scatter_hotel.png" /></p></td>
</tr>
<tr class="row-even"><td><p><img alt="figP3" src="_images/wine_scatter_hotel.png" /></p></td>
</tr>
<tr class="row-odd"><td><p><img alt="figP4" src="_images/wine_scatter_PC13.png" /></p></td>
<tr class="row-even"><td><p><img alt="figP4" src="_images/wine_scatter_PC13.png" /></p></td>
<td><p><img alt="figP7" src="_images/wine_scatter_density.png" /></p></td>
</tr>
</tbody>
</table>
Expand All @@ -204,7 +209,7 @@ <h1>Biplot<a class="headerlink" href="#biplot" title="Permalink to this heading"
<span class="n">model</span><span class="o">.</span><span class="n">biplot</span><span class="p">()</span>

<span class="c1"># Here again, many other options can be turned on and off</span>
<span class="n">model</span><span class="o">.</span><span class="n">biplot</span><span class="p">(</span><span class="n">SPE</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">HT2</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<span class="n">model</span><span class="o">.</span><span class="n">biplot</span><span class="p">(</span><span class="n">SPE</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">HT2</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">legend</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
</pre></div>
</div>
<table class="docutils align-center" id="id2">
Expand Down Expand Up @@ -337,6 +342,7 @@ <h1>3D plots<a class="headerlink" href="#d-plots" title="Permalink to this headi
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">model</span><span class="o">.</span><span class="n">biplot3d</span><span class="p">()</span>
</pre></div>
</div>
<a class="reference internal image-reference" href="_images/wine_biplot3d.png"><img alt="_images/wine_biplot3d.png" class="align-center" src="_images/wine_biplot3d.png" style="width: 600px;" /></a>
</section>
<section id="toggle-visible-status">
<h1>Toggle visible status<a class="headerlink" href="#toggle-visible-status" title="Permalink to this heading"></a></h1>
Expand All @@ -363,7 +369,7 @@ <h1>Toggle visible status<a class="headerlink" href="#toggle-visible-status" tit
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="Outlier%20detection.html" class="btn btn-neutral float-left" title="Hotelling T2" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="Examples.html" class="btn btn-neutral float-right" title="Quickstart" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
<a href="arrows.html" class="btn btn-neutral float-right" title="Control Arrows" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>

<hr/>
Expand Down
Binary file modified docs/pages/html/_images/biplot_only_directions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/pages/html/_images/custom_example_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/pages/html/_images/iris_density.png
Binary file modified docs/pages/html/_images/marker_example_1.png
Binary file added docs/pages/html/_images/wine_arrow_1.png
Binary file added docs/pages/html/_images/wine_arrow_10.png
Binary file added docs/pages/html/_images/wine_arrow_2.png
Binary file added docs/pages/html/_images/wine_arrow_3.png
Binary file added docs/pages/html/_images/wine_arrow_4.png
Binary file added docs/pages/html/_images/wine_arrow_5.png
Binary file added docs/pages/html/_images/wine_arrow_7.png
Binary file added docs/pages/html/_images/wine_arrow_8.png
Binary file added docs/pages/html/_images/wine_arrow_9.png
Binary file modified docs/pages/html/_images/wine_biplot.png
Binary file added docs/pages/html/_images/wine_biplot3d.png
Binary file modified docs/pages/html/_images/wine_biplot_with_outliers.png
Binary file modified docs/pages/html/_images/wine_scatter.png
Binary file modified docs/pages/html/_images/wine_scatter_PC13.png
Binary file modified docs/pages/html/_images/wine_scatter_density.png
Binary file modified docs/pages/html/_images/wine_scatter_hotel.png
Binary file modified docs/pages/html/_images/wine_scatter_spe.png
39 changes: 24 additions & 15 deletions docs/pages/html/_sources/Plots.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,25 @@ Scatter plot
# Make scatterplot
model.scatter()
# Make scatterplot
model.scatter(density=True)
# Gradient over the samples. High dense areas will be more colourful.
model.scatter(gradient='#FFFFFF')
model.scatter(gradient='#FFFFFF', edgecolor=None)
# Include the outlier detection
model.scatter(SPE=True)
model.scatter(SPE=True, density=True)
# Include the outlier detection
model.scatter(HT2=True)
model.scatter(HT2=True, density=True)
# Look at different PCs: 1st PC=1 vs PC=3
model.scatter(PC=[0, 2])
.. |figP1| image:: ../figs/wine_scatter.png
.. |figP1d| image:: ../figs/wine_scatter_density.png
.. |figP1g| image:: ../figs/wine_scatter_gradient.png
.. |figP2| image:: ../figs/wine_scatter_spe.png
.. |figP3| image:: ../figs/wine_scatter_hotel.png
.. |figP4| image:: ../figs/wine_scatter_PC13.png
Expand All @@ -64,17 +69,15 @@ Scatter plot
.. table:: Scatterplots
:align: center

+----------+
| |figP1| |
+----------+
| |figP7| |
+----------+
| |figP2| |
+----------+
| |figP3| |
+----------+
| |figP4| |
+----------+
+----------+----------+
| |figP1| |
+----------+----------+
| |figP1d| | |figP1g| |
+----------+----------+
| |figP2| | |figP3| |
+----------+----------+
| |figP4| | |figP7| |
+----------+----------+


Biplot
Expand All @@ -86,7 +89,7 @@ Biplot
model.biplot()
# Here again, many other options can be turned on and off
model.biplot(SPE=True, HT2=True)
model.biplot(SPE=True, HT2=True, legend=1)
.. |figP5| image:: ../figs/wine_biplot.png
Expand Down Expand Up @@ -252,6 +255,12 @@ All plots can also be created in 3D by setting the ``d3=True`` parameter.
model.biplot3d()
.. image:: ../figs/wine_biplot3d.png
:width: 600
:align: center



Toggle visible status
##############################

Expand Down
115 changes: 115 additions & 0 deletions docs/pages/html/_sources/arrows.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
Control Arrows
###############


.. code:: python
# Load pca
from pca import pca
# Initialize pca
model = pca(n_components=3)
# Load example data set
df = model.import_example(data='iris')
# Fit transform
results = model.fit_transform(df)
.. code:: python
# Loading are automatically set based on weak/strong
model.biplot(s=0)
.. image:: ../figs/wine_arrow_1.png
:width: 600
:align: center



.. code:: python
# Change strong and weak colors
model.biplot(s=0, arrowdict={'color_strong': 'r', 'color_weak': 'g'})
.. image:: ../figs/wine_arrow_2.png
:width: 600
:align: center


.. code:: python
# Set alpha to constant value
model.biplot(s=0, arrowdict={'alpha': 0.8})
.. image:: ../figs/wine_arrow_3.png
:width: 600
:align: center


.. code:: python
# Change arrow text color
model.biplot(s=0, arrowdict={'color_text': 'k'})
.. image:: ../figs/wine_arrow_4.png
:width: 600
:align: center


.. code:: python
# Change arrow color, which automatically changes the label color too
model.biplot(s=0, color_arrow='k')
.. image:: ../figs/wine_arrow_5.png
:width: 600
:align: center



.. code:: python
# Set color text
model.biplot(s=0, arrowdict={'color_text': 'k'})
.. image:: ../figs/wine_arrow_7.png
:width: 600
:align: center


.. code:: python
# Set color arrow and color text
model.biplot(s=0, color_arrow='k', arrowdict={'color_text': 'g'})
.. image:: ../figs/wine_arrow_8.png
:width: 600
:align: center



.. code:: python
# Set color arrow and color text and alpha
model.biplot()
.. image:: ../figs/wine_arrow_9.png
:width: 600
:align: center


.. code:: python
# Change the scale factor of the arrow
model.biplot3d(arrowdict={'scale_factor': 3})
.. image:: ../figs/wine_arrow_10.png
:width: 600
:align: center


.. include:: add_bottom.add
1 change: 1 addition & 0 deletions docs/pages/html/_sources/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Contents
:caption: Plots

Plots
arrows

.. toctree::
:maxdepth: 1
Expand Down
Loading

0 comments on commit 7e9fec2

Please sign in to comment.