|
52 | 52 |
|
53 | 53 | fig = pygmt.Figure()
|
54 | 54 |
|
55 |
| -pygmt.config(FONT_TITLE="14p,Helvetica,black", FORMAT_GEO_MAP="+D") |
| 55 | +pygmt.config(FONT_TITLE="14p,Courier,black", FORMAT_GEO_MAP="+D") |
56 | 56 |
|
57 | 57 | # ============
|
58 |
| - |
| 58 | +# top left |
59 | 59 | fig.basemap(
|
60 | 60 | # set map limits to theta_min = 0, theta_max = 360, radius_min = 0,
|
61 | 61 | # radius_max = 1
|
62 | 62 | region=[0, 360, 0, 1],
|
63 | 63 | # set map width to 5 cm
|
64 | 64 | projection="P5c",
|
65 |
| - # set the frame and color |
66 |
| - frame=["xa45f", "+gbisque"], |
| 65 | + # set the frame, color, and title |
| 66 | + # @^ allows for a line break within the title |
| 67 | + frame=["xa45f", "+gbisque+tprojection='P5c' @^ region=[0, 360, 0, 1]"], |
67 | 68 | )
|
68 | 69 |
|
69 |
| -fig.text(position="TC", text="projection='P5c'", offset="0/2.0c", no_clip=True) |
70 |
| -fig.text(position="TC", text="region=[0, 360, 0, 1]", offset="0/1.5c", no_clip=True) |
71 |
| - |
72 | 70 | fig.shift_origin(xshift="8c")
|
73 | 71 |
|
74 | 72 | # ============
|
| 73 | +# top middle |
75 | 74 | fig.basemap(
|
76 | 75 | # set map limits to theta_min = 0, theta_max = 360, radius_min = 0,
|
77 | 76 | # radius_max = 1
|
78 | 77 | region=[0, 360, 0, 1],
|
79 | 78 | # set map width to 5 cm and interpret input data as geographic azimuth
|
80 | 79 | # instead of standard angle
|
81 | 80 | projection="P5c+a",
|
82 |
| - # set the frame and color |
83 |
| - frame=["xa45f", "+gbisque"], |
| 81 | + # set the frame, color, and title |
| 82 | + # @^ allows for a line break within the title |
| 83 | + frame=["xa45f", "+gbisque+tprojection='P5c+a' @^ region=[0, 360, 0, 1]"], |
84 | 84 | )
|
85 | 85 |
|
86 |
| -fig.text(position="TC", text="projection='P5c+a'", offset="0/2.0c", no_clip=True) |
87 |
| -fig.text(position="TC", text="region=[0, 360, 0, 1]", offset="0/1.5c", no_clip=True) |
88 |
| - |
89 | 86 | fig.shift_origin(xshift="8c")
|
90 | 87 |
|
91 | 88 | # ============
|
| 89 | +# top right |
92 | 90 | fig.basemap(
|
93 | 91 | # set map limits to theta_min = 0, theta_max = 90, radius_min = 0,
|
94 | 92 | # radius_max = 1
|
95 | 93 | region=[0, 90, 0, 1],
|
96 | 94 | # set map width to 5 cm and interpret input data as geographic azimuth
|
97 | 95 | # instead of standard angle
|
98 | 96 | projection="P5c+a",
|
99 |
| - # set the frame and color |
100 |
| - frame=["xa45f", "ya0.2", "WNe+gbisque"], |
| 97 | + # set the frame, color, and title |
| 98 | + # @^ allows for a line break within the title |
| 99 | + frame=["xa45f", "ya0.2", "WNe+gbisque+tprojection='P5c+a' @^ region=[0, 90, 0, 1]"], |
101 | 100 | )
|
102 | 101 |
|
103 |
| -fig.text(position="TC", text="projection='P5c+a'", offset="0/2.0c", no_clip=True) |
104 |
| -fig.text(position="TC", text="region=[0, 90, 0, 1]", offset="0/1.5c", no_clip=True) |
105 |
| - |
106 | 102 | fig.shift_origin(xshift="-16c", yshift="-7c")
|
107 | 103 |
|
108 | 104 | # ============
|
| 105 | +# bottom left |
109 | 106 | fig.basemap(
|
110 | 107 | # set map limits to theta_min = 0, theta_max = 90, radius_min = 0,
|
111 | 108 | # radius_max = 1
|
|
114 | 111 | # instead of standard angle, rotate coordinate system counterclockwise by
|
115 | 112 | # 45 degrees
|
116 | 113 | projection="P5c+a+t45",
|
117 |
| - # set the frame and color |
118 |
| - frame=["xa30f", "ya0.2", "WNe+gbisque"], |
| 114 | + # set the frame, color, and title |
| 115 | + # @^ allows for a line break within the title |
| 116 | + frame=[ |
| 117 | + "xa30f", |
| 118 | + "ya0.2", |
| 119 | + "WNe+gbisque+tprojection='P5c+a+t45' @^ region=[0, 90, 0, 1]", |
| 120 | + ], |
119 | 121 | )
|
120 | 122 |
|
121 |
| -fig.text(position="TC", text=r"projection='P5c+a\+t45'", offset="0/2.0c", no_clip=True) |
122 |
| -fig.text(position="TC", text="region=[0, 90, 0, 1]", offset="0/1.5c", no_clip=True) |
123 |
| - |
124 | 123 | fig.shift_origin(xshift="8c", yshift="1.3c")
|
125 | 124 |
|
126 | 125 | # ============
|
| 126 | +# bottom middle |
127 | 127 | fig.basemap(
|
128 | 128 | # set map limits to theta_min = 0, theta_max = 90, radius_min = 3480,
|
129 | 129 | # radius_max = 6371 (Earth's radius)
|
|
132 | 132 | # instead of standard angle, rotate coordinate system counterclockwise by
|
133 | 133 | # 45 degrees
|
134 | 134 | projection="P5c+a+t45",
|
135 |
| - # set the frame and color |
136 |
| - frame=["xa30f", "ya", "WNse+gbisque"], |
137 |
| -) |
138 |
| - |
139 |
| -fig.text(position="TC", text=r"projection='P5c+a\+t45'", offset="0/2.0c", no_clip=True) |
140 |
| -fig.text( |
141 |
| - position="TC", text="region=[0, 90, 3480, 6371]", offset="0/1.5c", no_clip=True |
| 135 | + # set the frame, color, and title |
| 136 | + # @^ allows for a line break within the title |
| 137 | + frame=[ |
| 138 | + "xa30f", |
| 139 | + "ya", |
| 140 | + "WNse+gbisque+tprojection='P5c+a+t45' @^ region=[0, 90, 3480, 6371]", |
| 141 | + ], |
142 | 142 | )
|
143 | 143 |
|
144 | 144 | fig.shift_origin(xshift="8c")
|
145 | 145 |
|
146 | 146 | # ============
|
| 147 | +# bottom right |
147 | 148 | fig.basemap(
|
148 | 149 | # set map limits to theta_min = 0, theta_max = 90, radius_min = 3480,
|
149 | 150 | # radius_max = 6371 (Earth's radius)
|
|
152 | 153 | # instead of standard angle, rotate coordinate system counterclockwise by
|
153 | 154 | # 45 degrees, r-axis is marked as depth
|
154 | 155 | projection="P5c+a+t45+z",
|
155 |
| - # set the frame and color |
156 |
| - frame=["xa30f", "ya", "WNse+gbisque"], |
157 |
| -) |
158 |
| - |
159 |
| -fig.text( |
160 |
| - position="TC", text=r"projection='P5c+a\+t45+z'", offset="0/2.0c", no_clip=True |
161 |
| -) |
162 |
| -fig.text( |
163 |
| - position="TC", text="region=[0, 90, 3480, 6371]", offset="0/1.5c", no_clip=True |
| 156 | + # set the frame, color, and title |
| 157 | + # @^ allows for a line break within the title |
| 158 | + frame=[ |
| 159 | + "xa30f", |
| 160 | + "ya", |
| 161 | + "WNse+gbisque+tprojection='P5c+a+t45+\\z' @^ region=[0, 90, 3480, 6371]", |
| 162 | + ], |
164 | 163 | )
|
165 | 164 |
|
166 | 165 | fig.show()
|
0 commit comments