Skip to content

Commit

Permalink
Gallery example "Velocity arrows and confidence ellipses": Improve ar…
Browse files Browse the repository at this point in the history
…gument passed to "spec" (#3245)
  • Loading branch information
yvonnefroehlich authored May 12, 2024
1 parent cbbbd19 commit 4e364bb
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions examples/gallery/seismology/velo_arrow_ellipse.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
Velocity arrows and confidence ellipses
=======================================
The :meth:`pygmt.Figure.velo` method can be used to plot mean velocity arrows
and confidence ellipses. The example below plots red velocity arrows with
light-blue confidence ellipses outlined in red with the east_velocity x
north_velocity used for the station names. Note that the velocity arrows are
scaled by 0.2 and the 39% confidence limit will give an ellipse which fits
inside a rectangle of dimension east_sigma by north_sigma.
The :meth:`pygmt.Figure.velo` method can be used to plot mean velocity arrows and
confidence ellipses. The example below plots red velocity arrows with lightblue
confidence ellipses outlined in red with the east_velocity x north_velocity used for
the station names. Note that the velocity arrows are scaled by 0.2 and the 39%
confidence limit will give an ellipse which fits inside a rectangle of dimension
east_sigma by north_sigma.
"""

# %%
Expand All @@ -30,12 +30,12 @@
fig.velo(
data=df,
region=[-10, 8, -10, 6],
pen="0.6p,red",
projection="x0.8c",
frame=["WSne", "2g2f"],
spec="e0.2/0.39+f18",
uncertaintyfill="lightblue1",
pen="0.6p,red",
line=True,
spec="e0.2/0.39/18",
frame=["WSne", "2g2f"],
projection="x0.8c",
vector="0.3c+p1p+e+gred",
)

Expand Down

0 comments on commit 4e364bb

Please sign in to comment.