-
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
Complete documentation for plot #666
Conversation
|
True, I'll change it to offset, was thinking of some other module like colorbar that uses
Ok.
Let's go with connection to keep with GMT.jl
Ok, I prefer intensity too.
Alright, will ignore this one
With or without an s? zvalue/zvalues? We're using |
In GMT CLI, it could be a single value or an input file that contains a list of values. In PyGMT, I expect it to be a single value, a filename, or a list of values. So zvalues may make more sense. But, there are already some inconsistencies about plurals and singulars. For example: |
I forgot to say that I prefer to use singulars if possible, e.g., use size instead of sizes in |
Do we want to change sizes to size in this PR, and possibly break backward compatibility? There will be some tutorial examples we need to fix as well.
Actually for |
c566148
to
d6dca1d
Compare
Yes to me. But we need to think more about how
Considering the long-term unsolved issue #256, perhaps we should try to keep backward compatibility, at least for the next few releases. Otherwise, users who use sizes would get an error message which is difficult to understand.
Yes, intensity should be OK for plot(). |
Ah, didn't realize GMT.jl has those! The high-level API is for another discussion, I know @leouieda was keen on it, and @MarkWieczorek's https://github.com/SHTOOLS/SHTOOLS library has actually done a lot around PyGMT as well. There's also some discussion over at https://forum.generic-mapping-tools.org/t/pygmt-as-a-high-level-api-for-geovisualization/590, and your #670 feature request is an interesting step in that direction.
Ok, will keep to using
👍 |
Co-Authored-By: Dongdong Tian <[email protected]>
@seisman any other outstanding issues on this? I'd like to merge this in and work on the As agreed above, we'll figure out how to pass in an 'error' column with |
Also remove columns (i) alias for now. Co-Authored-By: Dongdong Tian <[email protected]>
Description of proposed changes
Considering that
plot
is one of the more widely used functions, we should document it better than what we currently have at https://www.pygmt.org/v0.2.0/api/generated/pygmt.Figure.plot.html! For reference, upstream GMT docs is at https://docs.generic-mapping-tools.org/6.1/plot.html and https://github.com/GenericMappingTools/gmt/blob/6.1/doc/rst/source/plot_common.rst_.Live documentation preview is at https://pygmt-git-improve-docs-plot.gmt.vercel.app/api/generated/pygmt.Figure.plot.html#pygmt.Figure.plot.
TODO:
Arguments/Aliases to document (see also https://www.generic-mapping-tools.org/GMT.jl/latest/#GMT.plot-Tuple{Any}). New aliases are highlighted in bold:
Fixes #
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.