From 1db205e068c699ce12c2873b6fb69d7ccea99127 Mon Sep 17 00:00:00 2001 From: Michael Waskom Date: Thu, 21 Jun 2018 15:25:23 -0400 Subject: [PATCH 01/43] Tweak homepage examples --- examples/different_scatter_variables.py | 8 ++++---- examples/errorband_lineplots.py | 4 ++-- examples/many_facets.py | 7 ++++--- examples/regression_marginals.py | 2 +- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/examples/different_scatter_variables.py b/examples/different_scatter_variables.py index 5771dd8909..433b6be78d 100644 --- a/examples/different_scatter_variables.py +++ b/examples/different_scatter_variables.py @@ -1,6 +1,6 @@ """ -Scatterplot with categorical and continuous semantics -===================================================== +Scatterplot with categorical and numerical semantics +==================================================== _thumb: .55, .5 @@ -17,6 +17,6 @@ f, ax = plt.subplots(figsize=(6.5, 6.5)) ax = sns.scatterplot(x="sepal_length", y="sepal_width", hue="species", size="petal_width", - sizes=(50, 200), alpha=.75, - palette="tab10", + sizes=(50, 250), alpha=.75, + palette="Set2", data=iris) diff --git a/examples/errorband_lineplots.py b/examples/errorband_lineplots.py index 9c1ba16abe..52cc945a40 100644 --- a/examples/errorband_lineplots.py +++ b/examples/errorband_lineplots.py @@ -1,6 +1,6 @@ """ -Timeseries plots with error bands -================================= +Timeseries plot with error bands +================================ _thumb: .5, .45 diff --git a/examples/many_facets.py b/examples/many_facets.py index c4f23ea21f..b505012f52 100644 --- a/examples/many_facets.py +++ b/examples/many_facets.py @@ -2,7 +2,7 @@ Plotting on a large number of facets ==================================== -_thumb: .35, .35 +_thumb: .4, .3 """ import numpy as np @@ -22,13 +22,14 @@ columns=["position", "step", "walk"]) # Initialize a grid of plots with an Axes for each walk -grid = sns.FacetGrid(df, col="walk", hue="walk", col_wrap=5, size=1.5) +grid = sns.FacetGrid(df, col="walk", hue="walk", palette="tab20c", + col_wrap=4, size=1.5) # Draw a horizontal line to show the starting point grid.map(plt.axhline, y=0, ls=":", c=".5") # Draw a line plot to show the trajectory of each random walk -grid.map(plt.plot, "step", "position", marker="o", ms=4) +grid.map(plt.plot, "step", "position", marker="o") # Adjust the tick positions and labels grid.set(xticks=np.arange(5), yticks=[-3, 3], diff --git a/examples/regression_marginals.py b/examples/regression_marginals.py index e4e2d1c7cb..a3e6686b83 100644 --- a/examples/regression_marginals.py +++ b/examples/regression_marginals.py @@ -9,4 +9,4 @@ tips = sns.load_dataset("tips") g = sns.jointplot("total_bill", "tip", data=tips, kind="reg", - xlim=(0, 60), ylim=(0, 12), color="r", size=7) + xlim=(0, 60), ylim=(0, 12), color="m", size=7) From 3b793bbed45b8dbee9eec0804a0b1bb98d3ed743 Mon Sep 17 00:00:00 2001 From: Michael Waskom Date: Thu, 21 Jun 2018 15:26:03 -0400 Subject: [PATCH 02/43] Update main and tutorial homepages --- doc/_static/style.css | 8 ++++++ doc/index.rst | 54 ++++++++++++++++++++++--------------- doc/tutorial.rst | 62 ++++++++++++++++++++++++++++++++++--------- 3 files changed, 89 insertions(+), 35 deletions(-) diff --git a/doc/_static/style.css b/doc/_static/style.css index f64910e5c6..9462201c43 100644 --- a/doc/_static/style.css +++ b/doc/_static/style.css @@ -30,6 +30,14 @@ code { 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; diff --git a/doc/index.rst b/doc/index.rst index f230b1609d..a4dd1c4e46 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -24,38 +24,37 @@ seaborn: statistical data visualization .. raw:: html -