Skip to content
14 changes: 11 additions & 3 deletions examples/gallery/symbols/multi_parameter_symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import pygmt

fig = pygmt.Figure()
fig.basemap(region=[0, 6, 0, 2], projection="x3c", frame=True)
fig.basemap(region=[0, 6.5, 0, 2], projection="x3c", frame=True)

# ELLIPSE
data = [[0.5, 1, 45, 3, 1]]
Expand All @@ -36,15 +36,23 @@
fig.plot(data=data, style="j", color="red3", pen="2p,black")

# RECTANGLE
data = [[3, 1, 4, 1.5]]
data = [[3, 0.5, 4, 1.5]]
fig.plot(data=data, style="r", color="dodgerblue", pen="2p,black")

# RECTANGLE
# width/height are given via the style parameter
fig.plot(x=3, y=1.5, style="r4/1.5", color="dodgerblue", pen="2p,black")

# ROUNDED RECTANGLE
data = [[4.5, 1, 1.25, 4, 0.5]]
fig.plot(data=data, style="R", color="seagreen", pen="2p,black")

# ROUNDED RECTANGLE
# width/height/radius are given via the style parameter
fig.plot(x=5.0, y=1.0, style="R1.25/4/0.5", color="seagreen", pen="2p,black")

# PIE WEDGE
data = [[5.5, 1, 2.5, 45, 330]]
data = [[6.0, 1, 2.5, 45, 330]]
fig.plot(data=data, style="w", color="lightgray", pen="2p,black")

fig.show()