Skip to content

Commit 629f5b8

Browse files
Add comparision with horizontal line via +y - similar to wiggle
1 parent 805f0d6 commit 629f5b8

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

examples/gallery/lines/curves_area.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
be drawn.
88
To plot an anomaly along a track use :meth:`pygmt.Figure.grdlandmask` and see the
99
gallery example :doc:`Wiggle along tracks </gallery/lines/wiggle>`.
10-
1110
"""
1211

1312
# %%
@@ -57,4 +56,21 @@
5756

5857
fig.show()
5958

59+
60+
# %%
61+
# Compare to a horizontal line.
62+
63+
# Set up new Figure instance
64+
fig = gmt.Figure()
65+
fig.basemap(region=[-10, 10, -5, 5], projection="X15c/5c", frame=True)
66+
67+
fig.plot(
68+
data=data_df[["x", "y1"]],
69+
fill="p8",
70+
pen="1p,black,solid",
71+
fill_between="c+gp17+p1p,black,dashed+y0.42",
72+
)
73+
74+
fig.show()
75+
6076
# sphinx_gallery_thumbnail_number = 1

0 commit comments

Comments
 (0)