Skip to content

Commit c4117cd

Browse files
authored
Update the title for the images/EPS on maps gallery example (#1052)
1 parent 231a953 commit c4117cd

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

examples/gallery/images/image.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
"""
2-
Images or EPS files on maps
3-
---------------------------
4-
The :meth:`pygmt.Figure.image` method can be used to read and
5-
place a raster image file or an Encapsulated PostScript file
6-
on a map. We must specify the file as *str* via the ``imagefile``
7-
parameter or simply use the filename as the first argument. You can
8-
also use a full URL pointing to your desired image. The ``position``
9-
parameter allows us to set a reference point on the map for the image.
10-
2+
Images on figures
3+
-----------------
4+
The :meth:`pygmt.Figure.image` method can be used to read and place an image
5+
file in many formats (e.g., png, jpg, eps, pdf) on a figure. We must specify
6+
the filename via the ``imagefile`` parameter or simply use the filename as
7+
the first argument. You can also use a full URL pointing to your desired image.
8+
The ``position`` parameter allows us to set a reference point on the map for
9+
the image.
1110
"""
1211
import os
1312

1413
import pygmt
1514

1615
fig = pygmt.Figure()
17-
18-
fig.basemap(region=[0, 2, 0, 2], projection="X6c", frame=True)
16+
fig.basemap(region=[0, 2, 0, 2], projection="X10c", frame=True)
1917

2018
# place and center the GMT logo from the GMT website to the position 1/1
21-
# on a basemap and draw a rectangular border around the image
19+
# on a basemap, scaled up to be 3 cm wide and draw a rectangular border
20+
# around the image
2221
fig.image(
2322
imagefile="https://www.generic-mapping-tools.org/_static/gmt-logo.png",
2423
position="g1/1+w3c+jCM",

0 commit comments

Comments
 (0)