From 73d8bf6124ba94bf91b5f8effcc08fb3778d9e4e Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Sun, 15 Jul 2018 18:07:19 -0500 Subject: [PATCH] DOC: update doc sidebar + remove about (#773) --- doc/source/about.rst | 12 ------------ doc/source/index.rst | 22 ++++++++++++++++++++-- doc/source/mapping.rst | 10 +++++++++- doc/source/set_operations.rst | 7 +++++++ 4 files changed, 36 insertions(+), 15 deletions(-) delete mode 100644 doc/source/about.rst diff --git a/doc/source/about.rst b/doc/source/about.rst deleted file mode 100644 index e5ca2d9..0000000 --- a/doc/source/about.rst +++ /dev/null @@ -1,12 +0,0 @@ -About -===== - -Known issues ------------- - -- The ``geopy`` API has changed significantly over recent versions, - ``geopy 1.10.0`` is currently supported. - -.. toctree:: - :maxdepth: 2 - diff --git a/doc/source/index.rst b/doc/source/index.rst index 7a22348..8dde664 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -23,11 +23,18 @@ to multiple geometries to shapely. GeoPandas enables you to easily do operations in python that would otherwise require a spatial database such as PostGIS. + .. toctree:: - :maxdepth: 2 + :maxdepth: 1 + :caption: Getting Started Installation Examples Gallery + +.. toctree:: + :maxdepth: 1 + :caption: User Guide + Data Structures Reading and Writing Files Indexing and Selecting Data @@ -38,9 +45,20 @@ such as PostGIS. Aggregation with dissolve Merging Data Geocoding + +.. toctree:: + :maxdepth: 1 + :caption: Reference Guide + Reference to All Attributes and Methods + + +.. toctree:: + :maxdepth: 1 + :caption: Developer + Contributing to GeoPandas - About + Indices and tables ================== diff --git a/doc/source/mapping.rst b/doc/source/mapping.rst index a124092..8d1f8e8 100644 --- a/doc/source/mapping.rst +++ b/doc/source/mapping.rst @@ -7,7 +7,8 @@ import matplotlib orig = matplotlib.rcParams['figure.figsize'] matplotlib.rcParams['figure.figsize'] = [orig[0] * 1.5, orig[1]] - + import matplotlib.pyplot as plt + plt.close('all') Mapping Tools @@ -128,3 +129,10 @@ Links to jupyter Notebooks for different mapping tasks: :suppress: matplotlib.rcParams['figure.figsize'] = orig + + +.. ipython:: python + :suppress: + + import matplotlib.pyplot as plt + plt.close('all') diff --git a/doc/source/set_operations.rst b/doc/source/set_operations.rst index ddaaec5..627c286 100644 --- a/doc/source/set_operations.rst +++ b/doc/source/set_operations.rst @@ -2,6 +2,8 @@ :suppress: import geopandas as gpd + import matplotlib.pyplot as plt + plt.close('all') Set-Operations with Overlay @@ -182,6 +184,11 @@ Changing the "how" option allows for different types of overlay operations. For country_peripheries.plot(alpha=0.5, edgecolor='k', cmap='tab10'); +.. ipython:: python + :suppress: + + import matplotlib.pyplot as plt + plt.close('all') More Examples