Skip to content

Commit 784bcfc

Browse files
Improve structure
1 parent 8ddc317 commit 784bcfc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

examples/gallery/lines/curves_area.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@
1212
import pandas as pd
1313
import pygmt as gmt
1414

15-
# -----------------------------------------------------------------------------
1615
# Generate some test data and create a pandas DataFrame
1716
x = np.arange(-10, 10.2, 0.1)
1817
y1 = np.sin(x * 3)
1918
y2 = np.sin(x / 2)
2019

2120
data_df = pd.DataFrame({"x": x, "y1": y1, "y2": y2})
21+
22+
23+
# %%
24+
# Fill the area between the two curves using the ``fill_between`` parameter.
25+
2226
fig = gmt.Figure()
2327
fig.basemap(region=[-10, 10, -5, 5], projection="X15c/5c", frame=True)
2428

0 commit comments

Comments
 (0)