|
26 | 26 | import pygmt
|
27 | 27 |
|
28 | 28 | fig = pygmt.Figure()
|
29 |
| - |
30 | 29 | fig.basemap(region=[0, 6, 0, 2], projection="x3c", frame=True)
|
31 | 30 |
|
32 |
| -################### |
33 | 31 | # ELLIPSE
|
34 | 32 | data = np.array([[0.5, 1, 45, 3, 1]])
|
35 |
| - |
36 | 33 | fig.plot(data=data, style="e", color="orange", pen="2p,black")
|
37 | 34 |
|
38 |
| -################### |
39 | 35 | # ROTATED RECTANGLE
|
40 | 36 | data = np.array([[1.5, 1, 120, 5, 0.5]])
|
41 |
| - |
42 | 37 | fig.plot(data=data, style="j", color="red3", pen="2p,black")
|
43 | 38 |
|
44 |
| -################### |
45 | 39 | # RECTANGLE
|
46 | 40 | data = np.array([[3, 1, 4, 1.5]])
|
47 |
| - |
48 | 41 | fig.plot(data=data, style="r", color="dodgerblue", pen="2p,black")
|
49 | 42 |
|
50 |
| -################### |
51 | 43 | # ROUNDED RECTANGLE
|
52 | 44 | data = np.array([[4.5, 1, 1.25, 4, 0.5]])
|
53 |
| - |
54 | 45 | fig.plot(data=data, style="R", color="seagreen", pen="2p,black")
|
55 | 46 |
|
56 |
| -################### |
57 | 47 | # PIE WEDGE
|
58 | 48 | data = np.array([[5.5, 1, 2.5, 45, 330]])
|
59 |
| - |
60 | 49 | fig.plot(data=data, style="w", color="lightgray", pen="2p,black")
|
61 | 50 |
|
62 | 51 | fig.show()
|
0 commit comments