Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 9 additions & 3 deletions doc/api/next_api_changes/behaviour.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ deprecation warning.
`~.Axes.errorbar` now color cycles when only errorbar color is set
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Previously setting the *ecolor* would turn off automatic color cycling for the plot, leading to the
the lines and markers defaulting to whatever the first color in the color cycle was in the case of
multiple plot calls.
Previously setting the *ecolor* would turn off automatic color cycling for the plot, leading to the
the lines and markers defaulting to whatever the first color in the color cycle was in the case of
multiple plot calls.

`.rcsetup.validate_color_for_prop_cycle` now always raises TypeError for bytes input
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -155,3 +155,9 @@ support for it will be dropped in a future Matplotlib release.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Previously, keyword arguments were silently ignored when no positional
arguments were given.


`get_xticklabels` and `get_yticklabels` now returns plain list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Previously, get_xticklabels and get_yticklabels returns silent_list.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can enumerate all of the methods that will be changed? The audience for this will not have the context you current have. What are the consequences of this change? Who is likely to be affected? What can they do to get the old behavior back?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I have two questions in my mind. 1st next_api_changes are the changes in the upcoming release which has not been shipped to market yet. Please correct me if I am wrong.
2nd: behaviour.rst is meant for knowing the changes across releases. Correct me if I am wrong.
thanks

They now return normal list.
6 changes: 3 additions & 3 deletions lib/matplotlib/axes/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3406,7 +3406,7 @@ def get_xticklabels(self, minor=False, which=None):
which : None, ('minor', 'major', 'both')
Overrides *minor*.

Selects which ticklabels to return
Selects which ticklabels to return.

Returns
-------
Expand All @@ -3420,7 +3420,7 @@ def get_xticklabels(self, minor=False, which=None):

See also: `~.pyplot.draw` and `~.FigureCanvasBase.draw`.
"""
return self.xaxis.get_ticklabels(minor=minor, which=which)
return list(self.xaxis.get_ticklabels(minor=minor, which=which))

@cbook._make_keyword_only("3.3", "fontdict")
def set_xticklabels(self, labels, fontdict=None, minor=False, **kwargs):
Expand Down Expand Up @@ -3814,7 +3814,7 @@ def get_yticklabels(self, minor=False, which=None):

See also: `~.pyplot.draw` and `~.FigureCanvasBase.draw`.
"""
return self.yaxis.get_ticklabels(minor=minor, which=which)
return list(self.yaxis.get_ticklabels(minor=minor, which=which))

@cbook._make_keyword_only("3.3", "fontdict")
def set_yticklabels(self, labels, fontdict=None, minor=False, **kwargs):
Expand Down