A possible bug in style style sheets reference
I found a possible bug in the code in this page. I copied and pasted the code into my Notebook, it returns an error: TypeError: set_ticks() got an unexpected keyword argument ‘labels’. The error noted is in line 42. It was ax.set_xticks(x + width, labels=['a', 'b', 'c', 'd', 'e']), I changed it to ax.set_xticks(x + width, ) \ ax.set_xticklabels(['a', 'b', 'c', 'd', 'e']), then it works.
1 Like
The labels keyword is new. You are likely using an older version of Matplotlib.
1 Like
The current documentation is tagged as unstable, despite being stable. The link in the text is linking to the page that I’m on. This is slightly confusing.
Thanks for fixing it ![]()
