Use ticklabels([]) instead of ticklabels('') #20632
Merged
+13
−12
Conversation
|
Technically not a doc-only change because I also updated the tests. |
| @@ -68,8 +68,8 @@ def doall(): | |||
| plt.gca().set_ylim(0., 1.) | |||
| plt.gca().set_title("Matplotlib's math rendering engine", | |||
| color=mpl_grey_rvb, fontsize=14, weight='bold') | |||
| plt.gca().set_xticklabels("", visible=False) | |||
| plt.gca().set_yticklabels("", visible=False) | |||
story645
Jul 12, 2021
Member
What is visible=False doing here?/is it okay that it's dropped?
What is visible=False doing here?/is it okay that it's dropped?
timhoffm
Jul 12, 2021
•
Author
Member
It sets all of the 0 created ticklabels to invisible 🙃 , i.e. does nothing.
It sets all of the 0 created ticklabels to invisible
The string variant is not supported according to the docstring. It's only working by accident.
14b34fd
into
matplotlib:master
26 checks passed
26 checks passed
|
Self-merged based on the positive review. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.


The string variant is not supported according to the docstring. It's
only working by accident due to the list comprehension in
matplotlib/lib/matplotlib/axis.py
Line 1705 in 30cbdf7