Open
Conversation
tupui
reviewed
Jan 5, 2026
Member
There was a problem hiding this comment.
Thanks for the post. I am +1 on doing such things 😃 I left some quick comments.
When making the PR, you should have seen a template asking some licensing questions. Please add a comment regarding these.
I have the right to publish the content under BSD 3-Clause License for the code and Creative Common CC-BY-4.0 License for the text.
|
|
||
| ## Default histogram plotting | ||
|
|
||
| To illustrate the Matplotlib histogram I will be using a dataset from an [online tutorial](https://www.geeksforgeeks.org/python/matplotlib-pyplot-hist-in-python/). Here are the lines I used for importing Matplotlib’s plotting library, defining a sample dataset, and plotting a histogram with the default settings. |
Member
There was a problem hiding this comment.
I am not sure about the licensing on this website. Can you confirm?
| 80, 77, 92, 81, 52, 43, 68, 71, 86] | ||
|
|
||
| # Plot default histogram | ||
| plt.figure() |
Member
There was a problem hiding this comment.
The OOP approach is recommended from Matplotlib's own documentation. We should promote that here too.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have written a blog post on matplotlib histograms and have been struggling to submit this through this pull request... Hope this went well.
The included png images are compressed and added alt text for them.