|
64 | 64 | fig = pygmt.Figure()
|
65 | 65 |
|
66 | 66 | fig.basemap(region="g", projection="R15c", frame=["+thlines geographic", "af"])
|
67 |
| -# Add a horizontal line at a latitude of 70°N without specifying longitude limits |
| 67 | +# Add a horizontal line at 70°N |
68 | 68 | fig.hlines(y=70, pen="1.5p,red3", label="Line 1")
|
69 |
| -# Add a line at a latitude of 50°N with longitude limits at 20°E and 160°E |
| 69 | +# Add a horizontal line at 50°N with longitude limits at 20°E and 160°E |
70 | 70 | fig.hlines(y=50, xmin=20, xmax=160, pen="1.5p,dodgerblue3", label="Line 2")
|
71 |
| -# Add a horizontal line at a latitude of 30°S with longitude limits at 60°E |
72 |
| -# and 270°E |
| 71 | +# Add a horizontal line at 30°S with longitude limits at 60°E and 270°E |
73 | 72 | fig.hlines(y=-30, xmin=60, xmax=270, pen="1.5p,gray30,-", label="Line 3")
|
74 | 73 | fig.legend()
|
75 | 74 |
|
76 | 75 | fig.shift_origin(xshift="w+2c")
|
77 | 76 |
|
78 | 77 | fig.basemap(region="g", projection="R15c", frame=["+tvlines geographic", "af"])
|
79 |
| -# Add a vertical line at a longitude of 70°E without specifying latitude limits |
| 78 | +# Add a vertical line at 70°E |
80 | 79 | fig.vlines(x=70, pen="1.5p,red3", label="Line 1")
|
81 |
| -# Add a vertical line at a longitude of 120°E with latitude limits at 50°S and 70°N |
| 80 | +# Add a vertical line at 20°E with latitude limits at 50°S and 70°N |
82 | 81 | fig.vlines(x=120, ymin=-50, ymax=70, pen="1.5p,dodgerblue3", label="Line 2")
|
83 |
| -# Add a vertical line at a longitude of 230°E with latitude limits at 70°S |
84 |
| -# and 80°N |
| 82 | +# Add a vertical line at 230°E with latitude limits at 70°S and 80°N |
85 | 83 | fig.vlines(x=230, ymin=-70, ymax=80, pen="1.5p,gray30,-", label="Line 3")
|
86 | 84 | fig.legend()
|
87 | 85 |
|
|
97 | 95 | fig = pygmt.Figure()
|
98 | 96 |
|
99 | 97 | fig.basemap(region=[0, 360, 0, 1], projection="P10c", frame=["+thlines polar", "af"])
|
100 |
| -# Add a horizontal line along a radius of 0.8 without specifying azimuth limits |
| 98 | +# Add a horizontal line along radius=0.8 |
101 | 99 | fig.hlines(y=0.8, pen="1.5p,red3", label="Line 1")
|
102 |
| -# Add a horizontal line along a radius of 0.5 with azimuth limits at 30° and 160° |
| 100 | +# Add a horizontal line along radius=0.5 with azimuth limits at 30° and 160° |
103 | 101 | fig.hlines(y=0.5, xmin=30, xmax=160, pen="1.5p,dodgerblue3", label="Line 2")
|
104 |
| -# Add a horizontal line along a radius of 0.25 with azimuth limits at 60° |
105 |
| -# and 270° |
| 102 | +# Add a horizontal line along radius=0.25 with azimuth limits at 60° and 270° |
106 | 103 | fig.hlines(y=0.25, xmin=60, xmax=270, pen="1.5p,gray30,-", label="Line 3")
|
107 | 104 | fig.legend()
|
108 | 105 |
|
109 | 106 | fig.shift_origin(xshift="w+2c")
|
110 | 107 |
|
111 | 108 | fig.basemap(region=[0, 360, 0, 1], projection="P10c", frame=["+tvlines polar", "af"])
|
112 |
| -# Add a vertical line along at an azimuth of 120° without specifying radius limits |
| 109 | +# Add a vertical line along azimuth=120° |
113 | 110 | fig.vlines(x=120, pen="1.5p,red3", label="Line 1")
|
114 |
| -# Add a vertical line along at an azimuth of 190° with radius limits at 0.2 and 0.8 |
| 111 | +# Add a vertical line along azimuth=190° with radius limits at 0.2 and 0.8 |
115 | 112 | fig.vlines(x=190, ymin=0.2, ymax=0.8, pen="1.5p,dodgerblue3", label="Line 2")
|
116 |
| -# Add a vertical line along at an azimuth of 320° with radius limits at 0.5 |
117 |
| -# and 0.9 |
| 113 | +# Add a vertical line along azimuth=320 with radius limits at 0.5 and 0.9 |
118 | 114 | fig.vlines(x=320, ymin=0.5, ymax=0.9, pen="1.5p,gray30,-", label="Line 3")
|
119 | 115 | fig.legend()
|
120 | 116 |
|
|
0 commit comments