[Easy task if you know some sphinx] Add example for setting map title
See original GitHub issueDescription of the problem
Even though it’s in the title, our map 🗺️ tutorial for setting map frames, ticks, titles and labels doesn’t actually teach us how to set a title!
We’ll need your help 👋 to add that to the example. You’ll be working on the pygmt/examples/tutorial/frames.py file which you can edit here or in your Text Editor or Integrated Development Environment (IDE).
To do that, you’ll need to know how to use the the frame (B)
setting in the basemap
function. Specifically, you might need to refer to the GMT docs on setting the B-option
. This one line of code below (adapted from https://github.com/GenericMappingTools/pygmt/pull/325#issuecomment-540203439) is part of what you need to do the trick:
fig.basemap(frame=["ag", "+tTitle"]
You can find out more about contributing in our CONTRIBUTING.md docs. Leave a comment below if you’d like to start working on this and feel free to ask for help! It’s actually as much of a learning experience for us as it will be for you 😄
Stretch goals
In addition to setting a title, Find out how to set an x-axis
label called “Longitude” and y-axis
label called “Latitude”!
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (14 by maintainers)
I’ll take on this issue.
Closed by #720.