-
Notifications
You must be signed in to change notification settings - Fork 216
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
Fix typos in syntax of the projection documentation #2269
Conversation
Additionally to the typo fixes, I expanded the docs for the Cylinderical equistant projection based on the upstrem GMT documentation (I saw the typo "map map" in the subsection Parameters). The same is needed for the Polyconic projection. Here the upstream GMT documentation seems to contain a copy-past-error (please see the subsection Parameters) from the Lambert conic conformal projection above. I have to understand how the Polyconic projection works before I can update the docs (I never used this projection) 🙂. Currently I don't know what Code example # source: https://www.pygmt.org/dev/projections/conic/polyconic.html
# last access: 2022/12/24
# modification: variation of lat0
import pygmt
lat0 = [-40, -30, -20, -10, 0, 10, 20, 30, 40, 50, 60, 70, 80]
for lat0_i in lat0:
fig = pygmt.Figure()
fig.coast(
shorelines="1/0.5p",
region=[-180, -20, 0, 90],
projection="Poly/-100/" + str(lat0_i) + "/12c",
land="gray",
borders="1/thick,black",
frame="afg10",
)
fig.text(
position="TL",
text="lat0 = " + str(lat0_i) + " deg",
)
fig.show() |
@GenericMappingTools/pygmt-maintainers can you please review this PR (I apologize for getting headache from this 😕). |
Ping @PaulWessel for comments on this. |
Let's see if @remkos has thoughts since I am pretty sure he added this projection. |
Description of proposed changes
This PR aims to fix some typos in the syntax of the projections, including both the overview table and the separate documentation pages.
Start in #2253
Fixes #2059
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