Skip to content

Commit 5b10f2a

Browse files
committed
updated linspace usage in apsg
1 parent f6ee5cc commit 5b10f2a

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

apsg/plotting.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,16 +222,24 @@ def plane(self, obj, *args, **kwargs):
222222
x = []
223223
y = []
224224
for azi, inc in obj.dd.T:
225-
xx, yy = self._cone(p2v(azi, inc), l2v(azi, inc),
226-
limit=89.9999, res=cosd(inc) * 179 + 2)
225+
xx, yy = self._cone(
226+
p2v(azi, inc),
227+
l2v(azi, inc),
228+
limit=89.9999,
229+
res=int(cosd(inc) * 179 + 2)
230+
)
227231
x = np.hstack((x, xx, np.nan))
228232
y = np.hstack((y, yy, np.nan))
229233
x = x[:-1]
230234
y = y[:-1]
231235
else:
232236
azi, inc = obj.dd
233-
x, y = self._cone(p2v(azi, inc), l2v(azi, inc),
234-
limit=89.9999, res=cosd(inc) * 179 + 2)
237+
x, y = self._cone(
238+
p2v(azi, inc),
239+
l2v(azi, inc),
240+
limit=89.9999,
241+
res=int(cosd(inc) * 179 + 2)
242+
)
235243
h = self.fig.axes[self.active].plot(x, y, *args, **kwargs)
236244
if animate:
237245
self.artists.append(tuple(h))

0 commit comments

Comments
 (0)