-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add histogram gallery example #1272
Conversation
Perhaps we should just generate some random data like this one https://matplotlib.org/stable/gallery/statistics/histogram_features.html. |
Of course, would be also fine for me. |
Co-authored-by: Dongdong Tian <[email protected]>
The example looks good to me, but I'm wondering if we should change the parameter FYI, GMT.jl uses Ping @willschlitzer |
Agree with @seisman since |
As discussed in #1272 the alias for Z should be renamed since ``type`` is already used as Python built-in method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the comments and suggestions @weiji14.
Co-authored-by: Wei Ji <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great~
Co-authored-by: Wei Ji <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Gallery example of a histogram with red bars on a gray background. Elevation counts are binned at 5m intervals, and the data is generated from a normal distribution with random noise added. Co-authored-by: Dongdong Tian <[email protected]> Co-authored-by: Wei Ji <[email protected]> Co-authored-by: Will Schlitzer <[email protected]>
Description of proposed changes
Since histogram is now wrapped in #1072, here's a corresponding gallery example.
Preview at https://pygmt-git-gallery-histogram-gmt.vercel.app/gallery/histograms/histogram.html
I guess we should also add the v3206_06.txt remote file to the cache data, right?This is continuation of work on #563.
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Slash Commands
You can write slash commands (
/command
) in the first line of a comment to performspecific operations. Supported slash commands are:
/format
: automatically format and lint the code/test-gmt-dev
: run full tests on the latest GMT development version