Closed
Description
Problem
Matplotlib documentation still uses old method of random number generation in NumPy. I think we can update the code to use newer method. Newer method was intropduced in NumPy 1.17 and recommended by NumPy over the older method (even though the older method still works)
- I found histogram example can be updated with newer code.
Suggested Improvement
- We can change the code to shown in this GitHub gist
- Entire documenation regarding recommended method is in NumPy docs
- Here is a visualization/output from the code in gist above:
Matplotlib version
- Operating system: Arch Linux
- Matplotlib version: 3.3.4 (matplotlib.version)
- Python version: 3.9.2 (platform.python_version())
- Matplotlib documentation version: Doc version v3.3.4 (as seen at the bottom of the histogram page )
anntzer and gncs
Metadata
Metadata
Assignees
Labels
Open a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!