Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omnibus documentation updates for v0.9 #1465

Merged
merged 44 commits into from
Jul 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
1db205e
Tweak homepage examples
mwaskom Jun 21, 2018
3b793bb
Update main and tutorial homepages
mwaskom Jun 21, 2018
40f7878
Remove deprecated tsplot function from API docs
mwaskom Jun 21, 2018
6891569
Revert change to axis limits in JointGrid
mwaskom Jun 21, 2018
513a810
Add example of controling scatterplot with matplotlib kwargs
mwaskom Jun 21, 2018
6a4dd36
Change multi-plot nomenclature
mwaskom Jun 21, 2018
f21c3b2
Show full whiskers without triggering a warning
mwaskom Jun 21, 2018
49af3b7
More homepage renaming
mwaskom Jun 21, 2018
850b421
Hide notebook bookkeeping from doc build
mwaskom Jun 22, 2018
0c2e58b
Small adjustments to tutorial structure
mwaskom Jun 22, 2018
46f4e6c
Disable autoscalling in swarmplot
mwaskom Jun 22, 2018
90ca775
Silence some doc build warnings
mwaskom Jun 25, 2018
345bf3c
Fix factorplot docstring
mwaskom Jun 25, 2018
fdb8acf
Hide input for color palette schematic
mwaskom Jun 29, 2018
d76a253
Tweak examples
mwaskom Jun 29, 2018
8f838c8
Tweak some section titles
mwaskom Jun 29, 2018
383d875
Update supported Python versions in README
mwaskom Jun 29, 2018
0626f1e
Move doc-making tools to doc root
mwaskom Jun 30, 2018
c23c68c
Increase granularity of tutorial makefile
mwaskom Jun 30, 2018
ecfd457
Use make more intelligently
mwaskom Jun 30, 2018
95f4f24
More tweaks to examples
mwaskom Jun 30, 2018
361250d
New scatter example
mwaskom Jul 3, 2018
926ee23
Update dots lineplot example to use relplot
mwaskom Jul 3, 2018
f573498
Update size= to height= in example gallery
mwaskom Jul 3, 2018
b910137
Update lvplot example
mwaskom Jul 3, 2018
30a947d
Begin rewriting introduction as notebook
mwaskom Jul 3, 2018
a929865
Fix anchor padding problem
mwaskom Jul 3, 2018
b2886fd
More informative error on g.ax with multiple axes
mwaskom Jul 3, 2018
7581f37
Change lmplot default size to match factor/relplot
mwaskom Jul 3, 2018
7691079
Add load_dataset to API docs
mwaskom Jul 3, 2018
f3fa2ef
Use short format for homepage toctree but longer titles on pages
mwaskom Jul 3, 2018
032d4b0
Add new introduction page to the docs
mwaskom Jul 3, 2018
a6e0d5e
Fix color codes with non-seaborn palette
mwaskom Jul 4, 2018
3c0e015
Fix relplot line legend
mwaskom Jul 4, 2018
fd288ce
Add missed test
mwaskom Jul 4, 2018
ae89920
Use raw HTML and templates to control content width
mwaskom Jul 4, 2018
792bd56
Tweak code background color
mwaskom Jul 4, 2018
e6fb50d
Cross references to tutorials in API docs and other small improvements
mwaskom Jul 5, 2018
3b20c17
Always use sns.set in API docs
mwaskom Jul 5, 2018
28a1827
DOC: Add intersphinx extension and links to some packages.
arokem Jul 5, 2018
54c00be
DOC: Two potential targets for intersphinx.
arokem Jul 5, 2018
c2e011c
Add direct references to some methods for multiplot grid objects
mwaskom Jul 5, 2018
a5f9007
A few tweaks to docs
mwaskom Jul 5, 2018
1d0009c
Merge pull request #1480 from arokem/intersphinx
mwaskom Jul 5, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The docs include a [tutorial](https://seaborn.pydata.org/tutorial.html), [exampl
Dependencies
------------

Seaborn supports Python 2.7 and 3.4+.
Seaborn supports Python 2.7 and 3.5+.

Installation requires [numpy](http://www.numpy.org/), [scipy](https://www.scipy.org/), [pandas](https://pandas.pydata.org/), and [matplotlib](https://matplotlib.org/). Some functions will optionally use [statsmodels](https://www.statsmodels.org/) if it is installed.

Expand Down
1 change: 1 addition & 0 deletions doc/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ _build/
generated/
examples/
example_thumbs/
introduction.rst
aesthetics.rst
basic.rst
color_palettes.rst
Expand Down
10 changes: 7 additions & 3 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " clean to remove genrated output"
@echo " html to make standalone HTML files"
@echo " notebooks to make the Jupyter notebook-based tutorials"
@echo " notebooks to make the Jupyter notebook-based tutorials"
@echo " dirhtml to make HTML files named index.html in directories"
@echo " singlehtml to make a single large HTML file"
@echo " pickle to make pickle files"
Expand Down Expand Up @@ -48,9 +48,13 @@ clean:
-rm -rf tutorial/*.rst
-rm -rf generated/*

notebooks:
tutorials:
make -C tutorial

make -C tutorial notebooks
introduction: introduction.ipynb
tools/nb_to_doc.py introduction

notebooks: tutorials introduction

html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
Expand Down
36 changes: 31 additions & 5 deletions doc/_static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,46 @@ blockquote {
margin: 0 0 0px !important;
}

pre {
background-color: #f6f6f9 !important;
}

code {
color: #49759c !important;
background-color: #ffffff !important;
}

code.descclassname {
padding-right: 0px !important;
}

code.descname {
padding-left: 0px !important;
}

dt:target, span.highlighted {
background-color: #ffffff !important;
}

ul {
padding-left: 20px !important;
}

ul.dropdown-menu {
padding-left: 0px !important;
}

.alert-info {
background-color: #adb8cb !important;
border-color: #adb8cb !important;
color: #2c3e50 !important;
}

.function dt {
padding-top: 150px;
margin-top: -150px;
-webkit-background-clip: content-box;
background-clip: content-box;
/* From https://github.com/twbs/bootstrap/issues/1768 */
*[id]:before {
display: block;
content: " ";
margin-top: -75px;
height: 75px;
visibility: hidden;
}
11 changes: 11 additions & 0 deletions doc/_templates/autosummary/base.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. raw:: html

</div>
<div class=col-md-9 content>

{{ fullname | escape | underline}}

.. currentmodule:: {{ module }}

.. auto{{ objtype }}:: {{ objname }}

34 changes: 34 additions & 0 deletions doc/_templates/autosummary/class.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.. raw:: html

</div>
<div class=col-md-9 content>

{{ fullname | escape | underline}}

.. currentmodule:: {{ module }}

.. autoclass:: {{ objname }}

{% block methods %}
.. automethod:: __init__

{% if methods %}
.. rubric:: Methods

.. autosummary::
{% for item in methods %}
~{{ name }}.{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block attributes %}
{% if attributes %}
.. rubric:: Attributes

.. autosummary::
{% for item in attributes %}
~{{ name }}.{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}
67 changes: 39 additions & 28 deletions doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,10 @@
API reference
=============

.. _grid_api:

Axis grids
----------

.. autosummary::
:toctree: generated/

FacetGrid
factorplot
lmplot
PairGrid
pairplot
JointGrid
jointplot


.. _basic_api:

Basic plots
-----------
Relational plots
----------------

.. autosummary::
:toctree: generated
Expand All @@ -42,6 +25,7 @@ Categorical plots
.. autosummary::
:toctree: generated/

factorplot
stripplot
swarmplot
boxplot
Expand All @@ -59,6 +43,8 @@ Distribution plots
.. autosummary::
:toctree: generated/

jointplot
pairplot
distplot
kdeplot
rugplot
Expand All @@ -71,6 +57,7 @@ Regression plots
.. autosummary::
:toctree: generated/

lmplot
regplot
residplot

Expand All @@ -85,26 +72,49 @@ Matrix plots
heatmap
clustermap

Timeseries plots
.. _grid_api:

Multi-plot grids
----------------

Facet grids
~~~~~~~~~~~

.. autosummary::
:toctree: generated/
:toctree: generated/

tsplot
FacetGrid
FacetGrid.map
FacetGrid.map_dataframe

Miscellaneous plots
-------------------
Pair grids
~~~~~~~~~~

.. autosummary::
:toctree: generated/
:toctree: generated/

PairGrid
PairGrid.map
PairGrid.map_diag
PairGrid.map_offdiag
PairGrid.map_lower
PairGrid.map_upper

palplot
Joint grids
~~~~~~~~~~~

.. autosummary::
:toctree: generated/

JointGrid
JointGrid.plot
JointGrid.plot_joint
JointGrid.plot_marginals

.. _style_api:

Style frontend
--------------
Style control
-------------

.. autosummary::
:toctree: generated/
Expand Down Expand Up @@ -158,6 +168,7 @@ Utility functions
.. autosummary::
:toctree: generated/

load_dataset
despine
desaturate
saturate
Expand Down
10 changes: 10 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
'sphinx.ext.coverage',
'sphinx.ext.mathjax',
'sphinx.ext.autosummary',
'sphinx.ext.intersphinx',
'matplotlib.sphinxext.plot_directive',
'gallery_generator',
'numpydoc',
Expand Down Expand Up @@ -283,3 +284,12 @@
def setup(app):
app.add_javascript('copybutton.js')
app.add_stylesheet('style.css')


# -- Intersphinx ------------------------------------------------

intersphinx_mapping = {'numpy': ('http://docs.scipy.org/doc/numpy/', None),
'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None),
'matplotlib': ('http://matplotlib.org/', None),
'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None),
'statsmodels': ('http://www.statsmodels.org/stable/', None)}