Complete inline example of `pygmt.Figure` class
@@ -59,8 +59,9 @@ class Figure:
Examples
--------
- >>> fig = Figure()
- >>> fig.basemap(region=[0, 360, -90, 90], projection="W7i", frame=True)
+ >>> import pygmt
+ >>> fig = pygmt.Figure()
+ >>> fig.basemap(region=[0, 360, -90, 90], projection="W15c", frame=True)
>>> fig.savefig("my-figure.png")
>>> # Make sure the figure file is generated and clean it up
>>> import os
@@ -71,8 +72,9 @@ class Figure:
The plot region can be specified through ISO country codes (for example,
``'JP'`` for Japan):
- >>> fig = Figure()
- >>> fig.basemap(region="JP", projection="M3i", frame=True)
+ >>> import pygmt
+ >>> fig = pygmt.Figure()
+ >>> fig.basemap(region="JP", projection="M7c", frame=True)
>>> # The fig.region attribute shows the WESN bounding box for the figure
>>> print(", ".join(f"{i:.2f}" for i in fig.region))
122.94, 145.82, 20.53, 45.52
