# 3D Scatter Plot in Real Time

**URL:** <https://community.plotly.com/t/3d-scatter-plot-in-real-time/10958>\
**Category:** 📊 Plotly Python\
**Created:** [June 15, 2018, 8:19pm UTC](https://community.plotly.com/t/3d-scatter-plot-in-real-time/10958 "2018-06-15T20:19:39Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![empet](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@empet](https://community.plotly.com/u/empet)\
**Post date:** [February 11, 2020, 8:50am UTC](https://community.plotly.com/t/3d-scatter-plot-in-real-time/10958/6 "2020-02-11T08:50:12Z")

</div>

Hi @rahulrajpl,

I’m sorry I didn’t notice your question before.

You can rotate your line just replacing the scatter3d that displays only markers, in my code pasted here [https://community.plotly.com/t/rotating-3d-plots-with-plotly/34776](https://community.plotly.com/t/rotating-3d-plots-with-plotly/34776) , as an answer to a similar question, into a scatter3d of mode =‘lines’.

This is the only change you have to make to get your lines rotated:

```auto
t = np.linspace(0, 10, 12)
x, y, z = np.cos(t), np.sin(t), t

fig= go.Figure(go.Scatter3d(x=x, y=y, z=z, mode='lines', line_width=5)) #you can define your own lines here

```

Eventually you can change in updatemenus, the frame duration to get the desired speed of rotation.

---

_[View the full topic](https://community.plotly.com/t/3d-scatter-plot-in-real-time/10958)._
