-
Notifications
You must be signed in to change notification settings - Fork 229
DOC: Use other image (not the GMT logo) in the gallery example for Figure.image #3863
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
Conversation
examples/gallery/images/image.py
Outdated
Path("gmt-logo.png").unlink() | ||
# Place and center ("+jCM") an image provided by GMT to the position ("+g") 1/1 on the | ||
# current plot, scaled up to be 8 cm wide ("+w") and draw a rectangular border around it | ||
fig.image(imagefile="@needle.jpg", position="g1/1+w8c+jCM", box=True) |
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.
I prefer to use a URL to an image instead to show that PyGMT supports URLs.
examples/gallery/images/image.py
Outdated
fig.image( | ||
imagefile="https://www.generic-mapping-tools.org/_static/gmt-logo.png", | ||
position="g1/1+w3c+jCM", | ||
imagefile="https://www.emirates247.com/polopoly_fs/1.569712.1452551297!/image/image.jpg", |
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.
I added a URL to this image. However, not sure how this is about the copyright and using this image in this gallery example.
Co-authored-by: Dongdong Tian <[email protected]>
Figure.image
Description of proposed changes
Related to the second part of comment #3856 (comment).
Update the gallery example for
Figure.image
to use another image (not the GMT logo).Preview:
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 command is:
/format
: automatically format and lint the code