8000 Line3DCollection iterable arguments · Issue #1079 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Line3DCollection iterable arguments #1079
Closed
@akhmerov

Description

@akhmerov

If a Line3DCollection is initialized from iterable arguments, it will be rendered initially, however will disappear upon rotation.
Here's code that reproduces the issue:

import matplotlib.pyplot as plt
from mpl_toolkits import mplot3d
fig = plt.figure()
ax = fig.add_subplot((111),  projection='3d')
ax.scatter((1, 2), (1, 2), (1, 2))
lines = iter([((1, 1, 1), (2, 2, 2))])
ax.add_collection(mplot3d.art3d.Line3DCollection(lines))

This shows a plot with two dots an a line connecting them. However when viewpoint is changed using GUI, the line disappears. I suspect the same behavior applies to any other 3D collection.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0