matplotlib/matplotlib · error · RuntimeError
{name} must be a sequence
Error message
{name} must be a sequence What it means
Error "{name} must be a sequence" thrown in matplotlib/matplotlib.
Source
Thrown at lib/mpl_toolkits/mplot3d/art3d.py:340
Parameters
----------
x : array-like
The x-data to be plotted.
y : array-like
The y-data to be plotted.
z : array-like
The z-data to be plotted.
Notes
-----
Accepts x, y, z arguments or a single array-like (x, y, z)
"""
if len(args) == 1:
args = args[0]
for name, xyz in zip('xyz', args):
if not np.iterable(xyz):
raise RuntimeError(f'{name} must be a sequence')
self._verts3d = args
self.stale = True
def get_data_3d(self):
"""
Get the current data
Returns
-------
verts3d : length-3 tuple or array-like
The current data as a tuple or array-like.
"""
return self._verts3d
@artist.allow_rasterization
def draw(self, renderer):
scale_mask = _scale_invalid_mask(*self._verts3d, self.axes)
if self._axlim_clip:View on GitHub (pinned to b379c1b69e)
When it happens
Trigger: Thrown at lib/mpl_toolkits/mplot3d/art3d.py:340 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of matplotlib/matplotlib@b379c1b69e (2026-08-21).
Data as JSON: /api/errors/e26eae7801140d00.
Report an issue: GitHub.