Skip to content

Commit

Permalink
Apply changes to basic 3d examples as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbar committed Oct 17, 2024
1 parent eae3070 commit 60f3897
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/3d_drawing/plot_3d_animation_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@


def init():
ax.clear()
ax.scatter(*nodes.T, alpha=0.2, s=100, color="blue")
for vizedge in edges:
ax.plot(*vizedge.T, color="gray")
ax.grid(False)
ax.set_axis_off()
plt.tight_layout()


def _frame_update(index):
Expand All @@ -47,6 +47,7 @@ def _frame_update(index):

fig = plt.figure()
ax = fig.add_subplot(111, projection="3d")
fig.tight_layout()

ani = animation.FuncAnimation(
fig,
Expand Down

0 comments on commit 60f3897

Please sign in to comment.