From 9a88b368a39ab97cc53ac406ce5de6273f87a6b6 Mon Sep 17 00:00:00 2001 From: "ddale1128@gmail.com" Date: Sun, 3 Dec 2023 18:11:51 -0800 Subject: [PATCH 1/4] Expand stairs plot-type entry intro --- galleries/plot_types/basic/stairs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/galleries/plot_types/basic/stairs.py b/galleries/plot_types/basic/stairs.py index 9bc5d025f1e1..3bf90ce37e9f 100644 --- a/galleries/plot_types/basic/stairs.py +++ b/galleries/plot_types/basic/stairs.py @@ -3,7 +3,8 @@ stairs(values) ============== -See `~matplotlib.axes.Axes.stairs`. +See `~matplotlib.axes.Axes.stairs` when plotting $y$ between $(x_i, x_{i+1})$. +For plotting $y$ at $x$, see `~matplotlib.axes.Axes.step`. .. redirect-from:: /plot_types/basic/step """ From 79ef13c2de771f97f6710efc9960a86ff0703c5e Mon Sep 17 00:00:00 2001 From: "ddale1128@gmail.com" Date: Mon, 4 Dec 2023 21:46:26 -0800 Subject: [PATCH 2/4] Rewrite with math directive --- galleries/plot_types/basic/stairs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/galleries/plot_types/basic/stairs.py b/galleries/plot_types/basic/stairs.py index 3bf90ce37e9f..d917d3d4e626 100644 --- a/galleries/plot_types/basic/stairs.py +++ b/galleries/plot_types/basic/stairs.py @@ -3,8 +3,8 @@ stairs(values) ============== -See `~matplotlib.axes.Axes.stairs` when plotting $y$ between $(x_i, x_{i+1})$. -For plotting $y$ at $x$, see `~matplotlib.axes.Axes.step`. +See `~matplotlib.axes.Axes.stairs` when plotting :math:`y$` between :math:`(x_i, x_{i+1})`. +For plotting :math:`y` at :math:`x`, see `~matplotlib.axes.Axes.step`. .. redirect-from:: /plot_types/basic/step """ From 444d473b560ee1616ab6ec54a8d1d07feba7817c Mon Sep 17 00:00:00 2001 From: "ddale1128@gmail.com" Date: Tue, 5 Dec 2023 21:20:28 -0800 Subject: [PATCH 3/4] Fix flake8 line length error --- galleries/plot_types/basic/stairs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/galleries/plot_types/basic/stairs.py b/galleries/plot_types/basic/stairs.py index d917d3d4e626..54c217a2dca0 100644 --- a/galleries/plot_types/basic/stairs.py +++ b/galleries/plot_types/basic/stairs.py @@ -3,8 +3,9 @@ stairs(values) ============== -See `~matplotlib.axes.Axes.stairs` when plotting :math:`y$` between :math:`(x_i, x_{i+1})`. -For plotting :math:`y` at :math:`x`, see `~matplotlib.axes.Axes.step`. +See `~matplotlib.axes.Axes.stairs` when plotting :math:`y$` between +:math:`(x_i, x_{i+1})`. For plotting :math:`y` at :math:`x`, see +`~matplotlib.axes.Axes.step`. .. redirect-from:: /plot_types/basic/step """ From ff8d5f00b44ce50458bc17c6b008790a89b669ef Mon Sep 17 00:00:00 2001 From: Dale Dai <145884899+CouldNot@users.noreply.github.com> Date: Wed, 6 Dec 2023 08:03:43 -0800 Subject: [PATCH 4/4] Remove stray simple Co-authored-by: hannah --- galleries/plot_types/basic/stairs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galleries/plot_types/basic/stairs.py b/galleries/plot_types/basic/stairs.py index 54c217a2dca0..de5761e3a7a5 100644 --- a/galleries/plot_types/basic/stairs.py +++ b/galleries/plot_types/basic/stairs.py @@ -3,7 +3,7 @@ stairs(values) ============== -See `~matplotlib.axes.Axes.stairs` when plotting :math:`y$` between +See `~matplotlib.axes.Axes.stairs` when plotting :math:`y` between :math:`(x_i, x_{i+1})`. For plotting :math:`y` at :math:`x`, see `~matplotlib.axes.Axes.step`.