← 返回首页
incomplete data in mpl_toolkits.mplot3d.art3d.Path3DCollection · Issue #7243 · matplotlib/matplotlib · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

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

Provide feedback

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

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

incomplete data in mpl_toolkits.mplot3d.art3d.Path3DCollection #7243

New issue
New issue

Description

After creating a mpl_toolkits.mplot3d.art3d.Path3DCollection, e.g.,

from matplotlib import pyplot as plt from mpl_toolkits.mplot3d.art3d import Path3DCollection import numpy as np pos = np.random.rand(3, 6) print(pos.T) fig = plt.figure() ax = fig.add_subplot(projection='3d') ax.scatter(pos[0], pos[1], pos[2], c=np.arange(pos.shape[1]))

I'd like to retrieve pos from the figure. As in 2D, I expected get_offsets to retrieve the data, but

for c in ax.get_children(): if isinstance(c, Path3DCollection): print(c.get_offsets())

only returns the first two colums of pos.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Footer

      © 2026 GitHub, Inc.