Skip to content

Commit

Permalink
updated linspace usage in apsg
Browse files Browse the repository at this point in the history
  • Loading branch information
mauroalberti committed May 1, 2020
1 parent f6ee5cc commit 5b10f2a
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions apsg/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,16 +222,24 @@ def plane(self, obj, *args, **kwargs):
x = []
y = []
for azi, inc in obj.dd.T:
xx, yy = self._cone(p2v(azi, inc), l2v(azi, inc),
limit=89.9999, res=cosd(inc) * 179 + 2)
xx, yy = self._cone(
p2v(azi, inc),
l2v(azi, inc),
limit=89.9999,
res=int(cosd(inc) * 179 + 2)
)
x = np.hstack((x, xx, np.nan))
y = np.hstack((y, yy, np.nan))
x = x[:-1]
y = y[:-1]
else:
azi, inc = obj.dd
x, y = self._cone(p2v(azi, inc), l2v(azi, inc),
limit=89.9999, res=cosd(inc) * 179 + 2)
x, y = self._cone(
p2v(azi, inc),
l2v(azi, inc),
limit=89.9999,
res=int(cosd(inc) * 179 + 2)
)
h = self.fig.axes[self.active].plot(x, y, *args, **kwargs)
if animate:
self.artists.append(tuple(h))
Expand Down

0 comments on commit 5b10f2a

Please sign in to comment.