-
Notifications
You must be signed in to change notification settings - Fork 225
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
[Easy task if you know some sphinx] Add example for setting map title #335
Comments
@Jessie42 will be working on this! |
I noticed the same thing. Putting title-setting in the docs would be super helpful.
|
I'll take on this issue. |
@weiji14 I'm struggling with the stretch goals of adding the axis labels. I thought it would be the same as setting the labels on the color bars, and the arguments would be |
GMT doesn't allow adding labels to geographic maps. As for geographic maps, the X-axis is always longitude and the Y axis is always latitude. |
Since the rest of the tutorial is for geographic maps, do you think it's better to use a non-geographic map for this last part or just not include axis labels in this tutorial? |
I don't have a good idea for this. Perhaps it's better to show labels for non-geographic maps and also explain why it doesn't work for geographic maps. |
That's a good idea; I'll add it tomorrow |
Currently struggling with adding the labels. I'm using: It is plotting the x-axis label on both the top and bottom and the y-axis label on the left and right side. Not seeing anything in the GMT docs to specify that it only print in one location; any ideas? |
Try with |
It worked! Thanks |
Closed by #720. |
Description 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 thebasemap
function. Specifically, you might need to refer to the GMT docs on setting theB-option
. This one line of code below (adapted from #325 (comment)) is part of what you need to do the trick: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" andy-axis
label called "Latitude"!The text was updated successfully, but these errors were encountered: