You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need a way to create a smooth representation of 3d curves in plotly. Currently I have a set of points when I plot them I get step-wise points in plotly. Is there a way to avoid the step-wise variance in the plots and get a smooth curve?
I have thought of interpolation but it is smoothing out the curve completely by avoiding all the outliers.
Attaching the images.
The blue line in this plot needs to be smoothed. It has lot of outliers which create that step effect when I plot that data.
Here is the output of interpolation:
Before Interpolation.
After Interpolation.
Any help on this would be great. Thanks.
The text was updated successfully, but these errors were encountered:
You can set the line properties to spline in the trace:
Example:
import plotly.plotly as py
import plotly.graph_objs as go
import numpy as np
x = np.linspace(1,10,num=50)
y = np.random.rand(1,50)
trace = go.Scatter(x=x,y=y[0],mode='lines', line=go.Line(shape='spline')) # Line shape is 'spline' here ..
py.plot([trace])
I need a way to create a smooth representation of 3d curves in plotly. Currently I have a set of points when I plot them I get step-wise points in plotly. Is there a way to avoid the step-wise variance in the plots and get a smooth curve?
I have thought of interpolation but it is smoothing out the curve completely by avoiding all the outliers.
Attaching the images.
The blue line in this plot needs to be smoothed. It has lot of outliers which create that step effect when I plot that data.
Here is the output of interpolation:

Before Interpolation.
After Interpolation.
Any help on this would be great. Thanks.
The text was updated successfully, but these errors were encountered: