Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Bug]: art3d.py set_data_3d; "RuntimeError- must be a sequence" #25544

Closed as not planned
@Drozdman-1

Description

@Drozdman-1

Bug summary

Breaks single point drawing.
set_data_3d() changed to:

 def set_data_3d(self, *args):         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

from previous version:

    def set_data_3d(self, *args):        if len(args) == 1:            self._verts3d = args[0]        else:            self._verts3d = args        self.stale = True

Code for reproduction

e.g.set_data_3d(0.94,-0.26,0.22)

Actual outcome

RuntimeError: must be a sequence

Expected outcome

setting new data using set_data_3d

Additional information

No response

Operating system

No response

Matplotlib Version

3.7.1

Matplotlib Backend

No response

Python version

3.10

Jupyter version

No response

Installation

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp