From 2aaaa14e7bbca586d3482dc733c276a03219cfeb Mon Sep 17 00:00:00 2001 From: priyanshi Date: Thu, 9 Feb 2023 02:04:13 +0530 Subject: [PATCH 1/5] Add locator API links to tick-locators example Signed-off-by: priyanshi --- examples/ticks/tick-locators.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/examples/ticks/tick-locators.py b/examples/ticks/tick-locators.py index 1832f382529e..c99b984c521c 100644 --- a/examples/ticks/tick-locators.py +++ b/examples/ticks/tick-locators.py @@ -73,3 +73,19 @@ def setup(ax, title): plt.tight_layout() plt.show() + +# %% +# +# .. admonition:: References +# +# The following locators are used in this example: +# +# - `matplotlib.ticker.NullLocator` +# - `matplotlib.ticker.MultipleLocator` +# - `matplotlib.ticker.FixedLocator` +# - `matplotlib.ticker.LinearLocator` +# - `matplotlib.ticker.IndexLocator` +# - `matplotlib.ticker.AutoLocator` +# - `matplotlib.ticker.MaxNLocator` +# - `matplotlib.ticker.LogLocator` + From b9ee17e842a19fab2e47ac30333e24d61c8fa20c Mon Sep 17 00:00:00 2001 From: priyanshi Date: Thu, 9 Feb 2023 02:22:41 +0530 Subject: [PATCH 2/5] Resolve flake8 warning: remove trailing white space at the end of tick-locators.py Signed-off-by: priyanshi --- examples/ticks/tick-locators.py | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/ticks/tick-locators.py b/examples/ticks/tick-locators.py index c99b984c521c..b787bb5bf2c3 100644 --- a/examples/ticks/tick-locators.py +++ b/examples/ticks/tick-locators.py @@ -88,4 +88,3 @@ def setup(ax, title): # - `matplotlib.ticker.AutoLocator` # - `matplotlib.ticker.MaxNLocator` # - `matplotlib.ticker.LogLocator` - From 71fae50cb21180212234eec0bbe06a017c774b18 Mon Sep 17 00:00:00 2001 From: priyanshi Date: Thu, 9 Feb 2023 02:32:14 +0530 Subject: [PATCH 3/5] Added set_minor and set_major functions to the references section in tick-locators.py Signed-off-by: priyanshi --- examples/ticks/tick-locators.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/ticks/tick-locators.py b/examples/ticks/tick-locators.py index b787bb5bf2c3..dd78e0fa1b40 100644 --- a/examples/ticks/tick-locators.py +++ b/examples/ticks/tick-locators.py @@ -78,8 +78,12 @@ def setup(ax, title): # # .. admonition:: References # -# The following locators are used in this example: +# The following functions, methods, classes and modules are used in this example: # +# - `matplotlib.axis.Axis.set_major_locator` +# - `matplotlib.axis.Axis.set_minor_locator` +# - `matplotlib.axis.XAxis.set_ticks_position` +# - `matplotlib.axis.YAxis.set_ticks_position` # - `matplotlib.ticker.NullLocator` # - `matplotlib.ticker.MultipleLocator` # - `matplotlib.ticker.FixedLocator` @@ -88,3 +92,4 @@ def setup(ax, title): # - `matplotlib.ticker.AutoLocator` # - `matplotlib.ticker.MaxNLocator` # - `matplotlib.ticker.LogLocator` +# %% From 342f1e24a8edc10e7b4c44e9272c2d4ae5bab921 Mon Sep 17 00:00:00 2001 From: priyanshi Date: Thu, 9 Feb 2023 07:47:56 +0530 Subject: [PATCH 4/5] fixed the error Signed-off-by: priyanshi --- examples/ticks/tick-locators.py | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/ticks/tick-locators.py b/examples/ticks/tick-locators.py index dd78e0fa1b40..3a089bd6b024 100644 --- a/examples/ticks/tick-locators.py +++ b/examples/ticks/tick-locators.py @@ -92,4 +92,3 @@ def setup(ax, title): # - `matplotlib.ticker.AutoLocator` # - `matplotlib.ticker.MaxNLocator` # - `matplotlib.ticker.LogLocator` -# %% From 89c9736a6d676a718404202bd9a1e208d17a750c Mon Sep 17 00:00:00 2001 From: priyanshi Date: Thu, 9 Feb 2023 22:17:37 +0530 Subject: [PATCH 5/5] Removed XAxis and YAxis set_ticks_position Signed-off-by: priyanshi --- examples/ticks/tick-locators.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/ticks/tick-locators.py b/examples/ticks/tick-locators.py index 3a089bd6b024..d4e03f2c21b6 100644 --- a/examples/ticks/tick-locators.py +++ b/examples/ticks/tick-locators.py @@ -82,8 +82,6 @@ def setup(ax, title): # # - `matplotlib.axis.Axis.set_major_locator` # - `matplotlib.axis.Axis.set_minor_locator` -# - `matplotlib.axis.XAxis.set_ticks_position` -# - `matplotlib.axis.YAxis.set_ticks_position` # - `matplotlib.ticker.NullLocator` # - `matplotlib.ticker.MultipleLocator` # - `matplotlib.ticker.FixedLocator`