Skip to content

Commit

Permalink
Add locator API links to tick-locators example (#25177)
Browse files Browse the repository at this point in the history
* Add locator API links to tick-locators example

Signed-off-by: priyanshi <noxdot1134@gmail.com>

* Resolve flake8 warning: remove trailing white space at the end of tick-locators.py

Signed-off-by: priyanshi <noxdot1134@gmail.com>

* Added set_minor and set_major functions to the references section in tick-locators.py

Signed-off-by: priyanshi <noxdot1134@gmail.com>

* fixed the error

Signed-off-by: priyanshi <noxdot1134@gmail.com>

* Removed XAxis and YAxis set_ticks_position

Signed-off-by: priyanshi <noxdot1134@gmail.com>

---------

Signed-off-by: priyanshi <noxdot1134@gmail.com>
  • Loading branch information
nox1134 committed Feb 10, 2023
1 parent 250a8bb commit 573292d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/ticks/tick-locators.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,20 @@ def setup(ax, title):

plt.tight_layout()
plt.show()

# %%
#
# .. admonition:: References
#
# 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.ticker.NullLocator`
# - `matplotlib.ticker.MultipleLocator`
# - `matplotlib.ticker.FixedLocator`
# - `matplotlib.ticker.LinearLocator`
# - `matplotlib.ticker.IndexLocator`
# - `matplotlib.ticker.AutoLocator`
# - `matplotlib.ticker.MaxNLocator`
# - `matplotlib.ticker.LogLocator`

0 comments on commit 573292d

Please sign in to comment.