Skip to content

Commit d67e234

Browse files
committed
[format-command] fixes
1 parent cef2a2d commit d67e234

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

examples/gallery/plot/vectors.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
# Generate a profile of points to plot
1313
region = [-126, -65, 25, 52]
14-
x = np.linspace(-100, -100, 12) # x vector coordinates
15-
y = np.linspace(29, 47, 12) # y vector coordinates
14+
x = np.linspace(-100, -100, 12) # x vector coordinates
15+
y = np.linspace(29, 47, 12) # y vector coordinates
1616
xvec = np.linspace(1, 5, 12) # dx vector data
17-
yvec = np.zeros(np.shape(y)) # dy vector data
17+
yvec = np.zeros(np.shape(y)) # dy vector data
1818

1919
fig = pygmt.Figure()
2020
# Create a 15x15 cm basemap with a Mercator projection (M) using the data region
21-
fig.coast(region=region, projection="M15c", B="10.0", N='1', A='2000', W='0.5p,black')
21+
fig.coast(region=region, projection="M15c", B="10.0", N="1", A="2000", W="0.5p,black")
2222
# Plot vectors using:
2323
# v0.2: vector size
2424
# e: vector head at end
@@ -27,5 +27,11 @@
2727
# p: vector-head pen
2828
# z: denotes vector's data in dx, dy (default is polar)
2929
# direction: data arrays
30-
fig.plot(x=x, y=y, style='v0.2+e+a40+gred+h0+p1p,red+z0.35', pen='1.0p,red', direction=[xvec, yvec])
30+
fig.plot(
31+
x=x,
32+
y=y,
33+
style="v0.2+e+a40+gred+h0+p1p,red+z0.35",
34+
pen="1.0p,red",
35+
direction=[xvec, yvec],
36+
)
3137
fig.show()

0 commit comments

Comments
 (0)