Skip to content

Commit 4a184b4

Browse files
committed
Robustify against old version of matplotlib/numpy. Pass lists not scalars
1 parent 09d7792 commit 4a184b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roboticstoolbox/backends/PyPlot/RobotPlot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,13 @@ def init(self):
202202
# in front
203203
if self.shadow:
204204
shadow, = self.ax.plot(
205-
0, 0,
205+
[0], [0],
206206
zorder=1,
207207
**self.options['shadow'])
208208
self.sh_links.append(shadow)
209209

210210
line, = self.ax.plot(
211-
0, 0, 0, **self.options['robot'])
211+
[0], [0], [0], **self.options['robot'])
212212
self.links.append(line)
213213

214214
self.eeframes = []

0 commit comments

Comments
 (0)