8000 Add locator API links to tick-locators example by nox1134 · Pull Request #25177 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Add locator API links to tick-locators example #25177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 10, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions examples/ticks/tick-locators.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,23 @@ 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.axis.XAxis.set_ticks_position`
# - `matplotlib.axis.YAxis.set_ticks_position`
# - `matplotlib.ticker.NullLocator`
# - `matplotlib.ticker.MultipleLocator`
# - `matplotlib.ticker.FixedLocator`
# - `matplotlib.ticker.LinearLocator`
# - `matplotlib.ticker.IndexLocator`
# - `matplotlib.ticker.AutoLocator`
# - `matplotlib.ticker.MaxNLocator`
# - `matplotlib.ticker.LogLocator`
# %%
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# %%

Pretty sure this line is causing the sphinx build to error

A quick survey of other similar references section this closing %% is not included

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for pointing that out! I will remove the closing '%%' and test the build again. I appreciate your help.

0